QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188178 | #5483. Class Field Trip | triplem5ds# | AC ✓ | 1ms | 3844kb | C++23 | 1.0kb | 2023-09-25 16:18:45 | 2023-09-25 16:18:45 |
Judging History
answer
/// Msaa el 5ra
#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("avx,avx2,fma")
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define F first
#define S second
#define f(i, a, b) for(int i = a; i < b; i++)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define sz(x) (int)(x).size()
#define mp(x, y) make_pair(x,y)
#define popCnt(x) (__builtin_popcountll(x))
#define int ll
using ll = long long;
using ii = pair<int, int>;
using ull = unsigned long long;
const int N = 5e5 + 5, LG = 18, MOD = 1e9 + 7;
const long double PI = acos(-1);
const long double EPS = 1e-7;
int n, m;
int go[1005];
int ans[105];
void doWork() {
string s1, s2;
cin >> s1 >> s2;
s1 += s2;
sort(all(s1));
cout << s1 << '\n';
}
int32_t main() {
#ifdef ONLINE_JUDGE
ios_base::sync_with_stdio(0);
cin.tie(0);
#endif // ONLINE_JUDGE
int t = 1;
// cin >> t;
while (t--) {
doWork();
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3552kb
input:
ahjmnoy acijjkll
output:
aachijjjkllmnoy
result:
ok single line: 'aachijjjkllmnoy'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
a a
output:
aa
result:
ok single line: 'aa'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy abbcefgghiiiiiijjjllllmmnnooqqrssttuvvwxxxxxyyzzzz
output:
aaaaabbbbcccddeeeeeffggghhiiiiiiijjjjjkllllmmnnnnnoooopqqqrrssssssstttttuuuvvvwwwxxxxxxxxyyyyyyyzzzz
result:
ok single line: 'aaaaabbbbcccddeeeeeffggghhiiii...tttuuuvvvwwwxxxxxxxxyyyyyyyzzzz'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz
output:
aaaaaaabbbbbcccdeggggggghhhiijjjjjllllllmmmmmnnnnnooooppppppqqqrrrrrsstttttuuuuvvvvwwwwxxxxxxyyyzzzz
result:
ok single line: 'aaaaaaabbbbbcccdeggggggghhhiij...stttttuuuuvvvvwwwwxxxxxxyyyzzzz'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz a
output:
aaaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaabbbbcdeeeffggggghhhhiiii...sssttttuuuvvvwwwwwwwwwxyyyyzzzz'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz z
output:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz
result:
ok single line: 'aaaaaabbbbbbccccddeeeefggggggh...ttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
z aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz
output:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzzz
result:
ok single line: 'aaaaaabbbccdeefgggghhhhiiiiiii...sttttuuvvvwwwwxxxxxxyyyyzzzzzzz'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaabbbbbbbbbbcccccdddeeeeeeefffggggggggggghhhhhiiiiiijjjjjjjjjjkkkllllllllmmmmmnnnnnnnnnnnooooooooopppppppppqqqqqqqrrrrrrrssssssssttttttttttuuuuuuuuvvvvvvvwwwwwwwwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz
result:
ok single line: 'aaaaaaaaaaabbbbbbbbbbcccccddde...wwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaaabbbbbbbbbccccccdddeeeeeeffgggggggggghhhhhiiiiiiiiijjjjjjjjjjkllllllllllmmmmmmmnnnnnnnnnnoooooooopppppppqqqqqqrrrrrrrsssssssssttttttttttuuuuuuuvvvvvvvwwwwwwwxxxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz
result:
ok single line: 'aaaaaaaaaaaabbbbbbbbbccccccddd...xxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaabceehiillmnorrtv
output:
aaaaaaaabbbbbccdeeeeeffggggghhhhhiiiiiijjjjkklllllllmmmnnnnnnnooooooppppppqqqqqrrrrrrrssstttttuuuvvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaaaabbbbbccdeeeeeffggggghh...stttttuuuvvvvwwwwwwwwwxyyyyzzzz'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
z a
output:
az
result:
ok single line: 'az'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
a z
output:
az
result:
ok single line: 'az'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
aabeehiklmmsy aaabceehiillmnorrtv
output:
aaaaabbceeeehhiiiklllmmmnorrstvy
result:
ok single line: 'aaaaabbceeeehhiiiklllmmmnorrstvy'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
ahijjmmnory aabeehiklmmsy
output:
aaabeehhiijjklmmmmnorsyy
result:
ok single line: 'aaabeehhiijjklmmmmnorsyy'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz hjno
output:
aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz
result:
ok single line: 'aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
ahijjmmnory bbbeeffggghiiijjjkkllnnnoooppqqqrsttuuvvwwwwwwyyzz
output:
abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz
result:
ok single line: 'abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz aabeehiklmmsy
output:
aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz
result:
ok single line: 'aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
aaabceehiillmnorrtv aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy
output:
aaaaaaabbbcccddeeeeeefghhiiijjkllmnnnnooopqrrrsssssttttuuvvwwxxxyyyyy
result:
ok single line: 'aaaaaaabbbcccddeeeeeefghhiiijj...ooopqrrrsssssttttuuvvwwxxxyyyyy'