用户输出
1345aeilnnnoopstt
ACD
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#22644 | #1120. Rhodoks的排序 | Wrong Answer | 0 | 129 ms | 432 K | C++ / 1.0 K | 软件73-曹大华 | 2020-02-13 17:10:36 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp(const void* a, const void* b) {
if (*((char*)a) >= '0' && *((char*)a) <= '9') {
if (*((char*)b) >= '0' && *((char*)b) <= '9') {
if (*((char*)a) > *((char*)b))
return 1;
else if (*((char*)a) < *((char*)b))
return -1;
else
return 0;
} else
return -1;
} else if (*((char*)a) >= 'a' && *((char*)a) <= 'z') {
if (*((char*)b) >= 'a' && *((char*)b) <= 'z') {
if (*((char*)a) > *((char*)b))
return 1;
else if (*((char*)a) < *((char*)b))
return -1;
else
return 0;
} else if (*((char*)b) >= '0' && *((char*)b) <= '9') {
return 1;
} else
return -1;
} else {
if (*((char*)b) >= 'A' && *((char*)b) <= 'Z') {
if (*((char*)a) > *((char*)b))
return 1;
else if (*((char*)a) < *((char*)b))
return -1;
else
return 0;
} else
return 1;
}
}
int main() {
int i = 0;
char a[100010];
while (scanf("%c", &a[i++]) != EOF)
;
a[i] = '\0';
qsort(a, strlen(a), sizeof(char), cmp);
printf("%s", a);
return 0;
}
用户输出
1345aeilnnnoopstt
ACD
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
k5OivzqJri9B3V9XE3V0t1GahkPrQtRZN73DRWM1N4kGg57EJKPY4qHydK1eWES6U0s1f27ZF5Vpj1839TEAq8a5Hy52gkUkZw10
<2 bytes omitted>
0001111112233334455555677788999aadefgghiijkkkkkpqqqrrsttvwyyzABDEEEEFGGHHJJKKMNNOPPQRRSTUUVVVWWXYZZZ
<2 bytes omitted>
用户输出
0001111112233334455555677788999aadefgghiijkkkkkpqqqrrsttvwyyz
ABDEEEEFGGHHJJKKMNNOPPQRRSTUUVVVWWXYZZZ
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
m06E45ZJk594cbqyTKZ042jE71Z97Qk8sDls5fsKfp9rDE468BjH3Vry36hyMFCtjsc2x8b26u2hz1f10ZRkx8ew0vFC6ZiW0RKw
<2 bytes omitted>
00000111222233444455566666778888999bbccefffhhijjjkkklmpqrrsssstuvwwxxyyyzBCCDDEEEFFHJKKKMQRRTVWZZZZZ
<2 bytes omitted>
用户输出
00000111222233444455566666778888999bbccefffhhijjjkkklmpqrrsssstuvwwxxyyyz
BCCDDEEEFFHJKKKMQRRTVWZZZZZ
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
tUWX8j6Z0Tx85oC3l7nl00SnGgIcmgJOkTnONWIyuSu30QB6pIKu0R4n7L4X9QOL87xAp9LTymn62yxZ2OFJ146nLL1O9hg0a316
<2 bytes omitted>
00000011122333444566666777888999acggghjkllmmnnnnnnopptuuuxxxyyyABCFGIIIJJKLLLLLNOOOOOQQRSSTTTUWWXXZZ
<2 bytes omitted>
用户输出
00000011122333444566666777888999acggghjkllmmnnnnnnopptuuuxxxyyy
ABCFGIIIJJKLLLLLNOOOOOQQRSSTTTUWWXXZZ
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
fRHJC8kKNZ17WgriI7nS9seLHwZTbeweo5LraEMRR3H29wKPx7RWH042849gH2y86Df7Moi80Wop8OX8OScx5O2rGZ5C2039XYX4
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
cKQa8erMn8tK5tKH8qt50P6zbghI71M3t1OjPoyP3LCv9F4I1z5o7G0Cw4KZq8wT9l8VEWHQ7K2OyG7ZYsy9VWZ9yHU6j32q5WLy
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
2v05yDLdjj1gWJh1374gI5hq1gLa2RI3Fc02Yk32buB5K4Zq9M8toe7C3F098Eq30K52UDdK90XW1WSOCe89oWouzW40206V45ZK
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
fR9l22CZ615FmE0c3b06817wzjUjL5s4ps6W3eK1jGsxR4VpSGbpw0R2b7V3Ia7XgulbjEJQHe3gMm4Z561L8Hh14tM06MvTACyV
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
c6Ami1W2o6c5SLJ5Ndw0308Y3ay2V4Wl25087R3mJ9hzc500Y4d9JrNmO7AAcnl89W21k4M2T6rrQS7aFot10U1z0VeB3C04t21t
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
3KkXhF8XhpfNIf04cL5s1ihFRr6yT2WFU4ydvxC3PYcRvh6854Kar2KfNe48Q6T6R7i8fK07xJ0F5eGMJj58fSGU3Uun94ZCc7p2
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99875 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0