用户输出
1345aeilnnnoopsttACD
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#22379 | #1120. Rhodoks的排序 | Accepted | 100 | 61 ms | 604 K | C++ / 787 B | 计试91-周翼腾 | 2020-02-12 20:02:12 |
#include <iostream>
// 精罗震怒题
using namespace std;
int main() {
int num[10] = { 0 };
int lc[26] = { 0 }; // lower character
int uc[26] = { 0 }; // upper character
string inp; // input
cin >> inp;
for (int i = 0; i < inp.length(); i++) {
if (inp[i] >= '0' && inp[i] <= '9')
num[inp[i] - '0']++;
if (inp[i] >= 'a' && inp[i] <= 'z')
lc[inp[i] - 'a']++;
if (inp[i] >= 'A' && inp[i] <= 'Z')
uc[inp[i] - 'A']++;
}
for (int i = 0; i < 10;)
if (num[i] != 0) {
cout << i;
num[i]--;
} else
i++;
for (int i = 0; i < 26;)
if (lc[i] != 0) {
cout << (char)(i + 'a');
lc[i]--;
} else
i++;
for (int i = 0; i < 26;)
if (uc[i] != 0) {
cout << (char)(i + 'A');
uc[i]--;
} else
i++;
return 0;
}
用户输出
1345aeilnnnoopsttACD
系统信息
Exited with return code 0
k5OivzqJri9B3V9XE3V0t1GahkPrQtRZN73DRWM1N4kGg57EJKPY4qHydK1eWES6U0s1f27ZF5Vpj1839TEAq8a5Hy52gkUkZw10
<2 bytes omitted>
0001111112233334455555677788999aadefgghiijkkkkkpqqqrrsttvwyyzABDEEEEFGGHHJJKKMNNOPPQRRSTUUVVVWWXYZZZ
<2 bytes omitted>
用户输出
0001111112233334455555677788999aadefgghiijkkkkkpqqqrrsttvwyyzABDEEEEFGGHHJJKKMNNOPPQRRSTUUVVVWWXYZZZ
系统信息
Exited with return code 0
m06E45ZJk594cbqyTKZ042jE71Z97Qk8sDls5fsKfp9rDE468BjH3Vry36hyMFCtjsc2x8b26u2hz1f10ZRkx8ew0vFC6ZiW0RKw
<2 bytes omitted>
00000111222233444455566666778888999bbccefffhhijjjkkklmpqrrsssstuvwwxxyyyzBCCDDEEEFFHJKKKMQRRTVWZZZZZ
<2 bytes omitted>
用户输出
00000111222233444455566666778888999bbccefffhhijjjkkklmpqrrsssstuvwwxxyyyzBCCDDEEEFFHJKKKMQRRTVWZZZZZ
系统信息
Exited with return code 0
tUWX8j6Z0Tx85oC3l7nl00SnGgIcmgJOkTnONWIyuSu30QB6pIKu0R4n7L4X9QOL87xAp9LTymn62yxZ2OFJ146nLL1O9hg0a316
<2 bytes omitted>
00000011122333444566666777888999acggghjkllmmnnnnnnopptuuuxxxyyyABCFGIIIJJKLLLLLNOOOOOQQRSSTTTUWWXXZZ
<2 bytes omitted>
用户输出
00000011122333444566666777888999acggghjkllmmnnnnnnopptuuuxxxyyyABCFGIIIJJKLLLLLNOOOOOQQRSSTTTUWWXXZZ
系统信息
Exited with return code 0
fRHJC8kKNZ17WgriI7nS9seLHwZTbeweo5LraEMRR3H29wKPx7RWH042849gH2y86Df7Moi80Wop8OX8OScx5O2rGZ5C2039XYX4
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0
cKQa8erMn8tK5tKH8qt50P6zbghI71M3t1OjPoyP3LCv9F4I1z5o7G0Cw4KZq8wT9l8VEWHQ7K2OyG7ZYsy9VWZ9yHU6j32q5WLy
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0
2v05yDLdjj1gWJh1374gI5hq1gLa2RI3Fc02Yk32buB5K4Zq9M8toe7C3F098Eq30K52UDdK90XW1WSOCe89oWouzW40206V45ZK
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0
fR9l22CZ615FmE0c3b06817wzjUjL5s4ps6W3eK1jGsxR4VpSGbpw0R2b7V3Ia7XgulbjEJQHe3gMm4Z561L8Hh14tM06MvTACyV
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0
c6Ami1W2o6c5SLJ5Ndw0308Y3ay2V4Wl25087R3mJ9hzc500Y4d9JrNmO7AAcnl89W21k4M2T6rrQS7aFot10U1z0VeB3C04t21t
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0
3KkXhF8XhpfNIf04cL5s1ihFRr6yT2WFU4ydvxC3PYcRvh6854Kar2KfNe48Q6T6R7i8fK07xJ0F5eGMJj58fSGU3Uun94ZCc7p2
<99902 bytes omitted>
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99902 bytes omitted>
用户输出
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<99872 bytes omitted>
系统信息
Exited with return code 0