QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#468724 | #5483. Class Field Trip | Eiad_Ahmed# | AC ✓ | 0ms | 3848kb | C++20 | 582b | 2024-07-08 23:41:14 | 2024-07-08 23:41:14 |
Judging History
answer
#include <bits/stdc++.h>
#define ll long long
#define db double
#define _2t2ota ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(0)
const int mod = (int) 1e9 + 7;
using namespace std;
const ll oo = (ll) 1e18;
// بدها طولة نفس....خلي المعنويات عالية
int main() {
_2t2ota;
//freopen("abc.in", "r", stdin);
int t = 1;
//cin >> t;
while (t--) {
string s,f,coll;
cin>>s>>f;
coll=s+f;
sort(coll.begin(),coll.end());
cout<<coll<<endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3556kb
input:
ahjmnoy acijjkll
output:
aachijjjkllmnoy
result:
ok single line: 'aachijjjkllmnoy'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
a a
output:
aa
result:
ok single line: 'aa'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy abbcefgghiiiiiijjjllllmmnnooqqrssttuvvwxxxxxyyzzzz
output:
aaaaabbbbcccddeeeeeffggghhiiiiiiijjjjjkllllmmnnnnnoooopqqqrrssssssstttttuuuvvvwwwxxxxxxxxyyyyyyyzzzz
result:
ok single line: 'aaaaabbbbcccddeeeeeffggghhiiii...tttuuuvvvwwwxxxxxxxxyyyyyyyzzzz'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz
output:
aaaaaaabbbbbcccdeggggggghhhiijjjjjllllllmmmmmnnnnnooooppppppqqqrrrrrsstttttuuuuvvvvwwwwxxxxxxyyyzzzz
result:
ok single line: 'aaaaaaabbbbbcccdeggggggghhhiij...stttttuuuuvvvvwwwwxxxxxxyyyzzzz'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz a
output:
aaaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaabbbbcdeeeffggggghhhhiiii...sssttttuuuvvvwwwwwwwwwxyyyyzzzz'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz z
output:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz
result:
ok single line: 'aaaaaabbbbbbccccddeeeefggggggh...ttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
z aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz
output:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzzz
result:
ok single line: 'aaaaaabbbccdeefgggghhhhiiiiiii...sttttuuvvvwwwwxxxxxxyyyyzzzzzzz'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaabbbbbbbbbbcccccdddeeeeeeefffggggggggggghhhhhiiiiiijjjjjjjjjjkkkllllllllmmmmmnnnnnnnnnnnooooooooopppppppppqqqqqqqrrrrrrrssssssssttttttttttuuuuuuuuvvvvvvvwwwwwwwwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz
result:
ok single line: 'aaaaaaaaaaabbbbbbbbbbcccccddde...wwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaaabbbbbbbbbccccccdddeeeeeeffgggggggggghhhhhiiiiiiiiijjjjjjjjjjkllllllllllmmmmmmmnnnnnnnnnnoooooooopppppppqqqqqqrrrrrrrsssssssssttttttttttuuuuuuuvvvvvvvwwwwwwwxxxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz
result:
ok single line: 'aaaaaaaaaaaabbbbbbbbbccccccddd...xxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaabceehiillmnorrtv
output:
aaaaaaaabbbbbccdeeeeeffggggghhhhhiiiiiijjjjkklllllllmmmnnnnnnnooooooppppppqqqqqrrrrrrrssstttttuuuvvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaaaabbbbbccdeeeeeffggggghh...stttttuuuvvvvwwwwwwwwwxyyyyzzzz'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
z a
output:
az
result:
ok single line: 'az'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
a z
output:
az
result:
ok single line: 'az'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
aabeehiklmmsy aaabceehiillmnorrtv
output:
aaaaabbceeeehhiiiklllmmmnorrstvy
result:
ok single line: 'aaaaabbceeeehhiiiklllmmmnorrstvy'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
ahijjmmnory aabeehiklmmsy
output:
aaabeehhiijjklmmmmnorsyy
result:
ok single line: 'aaabeehhiijjklmmmmnorsyy'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz hjno
output:
aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz
result:
ok single line: 'aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
ahijjmmnory bbbeeffggghiiijjjkkllnnnoooppqqqrsttuuvvwwwwwwyyzz
output:
abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz
result:
ok single line: 'abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz aabeehiklmmsy
output:
aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz
result:
ok single line: 'aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
aaabceehiillmnorrtv aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy
output:
aaaaaaabbbcccddeeeeeefghhiiijjkllmnnnnooopqrrrsssssttttuuvvwwxxxyyyyy
result:
ok single line: 'aaaaaaabbbcccddeeeeeefghhiiijj...ooopqrrrsssssttttuuvvwwxxxyyyyy'