QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#588427 | #5483. Class Field Trip | Amy621 | AC ✓ | 0ms | 3828kb | C++14 | 457b | 2024-09-25 11:00:19 | 2024-09-25 11:42:42 |
Judging History
answer
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
typedef long double ld;
#include <string>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>
#include <limits>
int main()
{
string a, b; cin >> a >> b;
string combine = a+b;
sort(combine.begin(), combine.end());
cout << combine << "\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3604kb
input:
ahjmnoy acijjkll
output:
aachijjjkllmnoy
result:
ok single line: 'aachijjjkllmnoy'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
a a
output:
aa
result:
ok single line: 'aa'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy abbcefgghiiiiiijjjllllmmnnooqqrssttuvvwxxxxxyyzzzz
output:
aaaaabbbbcccddeeeeeffggghhiiiiiiijjjjjkllllmmnnnnnoooopqqqrrssssssstttttuuuvvvwwwxxxxxxxxyyyyyyyzzzz
result:
ok single line: 'aaaaabbbbcccddeeeeeffggghhiiii...tttuuuvvvwwwxxxxxxxxyyyyyyyzzzz'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz
output:
aaaaaaabbbbbcccdeggggggghhhiijjjjjllllllmmmmmnnnnnooooppppppqqqrrrrrsstttttuuuuvvvvwwwwxxxxxxyyyzzzz
result:
ok single line: 'aaaaaaabbbbbcccdeggggggghhhiij...stttttuuuuvvvvwwwwxxxxxxyyyzzzz'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz a
output:
aaaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaabbbbcdeeeffggggghhhhiiii...sssttttuuuvvvwwwwwwwwwxyyyyzzzz'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz z
output:
aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz
result:
ok single line: 'aaaaaabbbbbbccccddeeeefggggggh...ttuuuuuvvvvwwwxxxxxxxxyyyyyyzzz'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
z aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz
output:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzzz
result:
ok single line: 'aaaaaabbbccdeefgggghhhhiiiiiii...sttttuuvvvwwwwxxxxxxyyyyzzzzzzz'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaabbbbbbbbbbcccccdddeeeeeeefffggggggggggghhhhhiiiiiijjjjjjjjjjkkkllllllllmmmmmnnnnnnnnnnnooooooooopppppppppqqqqqqqrrrrrrrssssssssttttttttttuuuuuuuuvvvvvvvwwwwwwwwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz
result:
ok single line: 'aaaaaaaaaaabbbbbbbbbbcccccddde...wwwwwwxxxxxxxxxyyyyyyyyyyzzzzzz'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
aaaaaabbbccdeefgggghhhhiiiiiiijjjjlllllllmmmmnnnnnooooppppqqqqrrrrrssssttttuuvvvwwwwxxxxxxyyyyzzzzzz aaaaaabbbbbbccccddeeeefgggggghiijjjjjjklllmmmnnnnnoooopppqqrrsssssttttttuuuuuvvvvwwwxxxxxxxxyyyyyyzz
output:
aaaaaaaaaaaabbbbbbbbbccccccdddeeeeeeffgggggggggghhhhhiiiiiiiiijjjjjjjjjjkllllllllllmmmmmmmnnnnnnnnnnoooooooopppppppqqqqqqrrrrrrrsssssssssttttttttttuuuuuuuvvvvvvvwwwwwwwxxxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz
result:
ok single line: 'aaaaaaaaaaaabbbbbbbbbccccccddd...xxxxxxxxxxxxxyyyyyyyyyyzzzzzzzz'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
aaaaabbbbcdeeeffggggghhhhiiiijjjjkklllllmmnnnnnnoooooppppppqqqqqrrrrrsssttttuuuvvvwwwwwwwwwxyyyyzzzz aaabceehiillmnorrtv
output:
aaaaaaaabbbbbccdeeeeeffggggghhhhhiiiiiijjjjkklllllllmmmnnnnnnnooooooppppppqqqqqrrrrrrrssstttttuuuvvvvwwwwwwwwwxyyyyzzzz
result:
ok single line: 'aaaaaaaabbbbbccdeeeeeffggggghh...stttttuuuvvvvwwwwwwwwwxyyyyzzzz'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
z a
output:
az
result:
ok single line: 'az'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
a z
output:
az
result:
ok single line: 'az'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
aabeehiklmmsy aaabceehiillmnorrtv
output:
aaaaabbceeeehhiiiklllmmmnorrstvy
result:
ok single line: 'aaaaabbceeeehhiiiklllmmmnorrstvy'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
ahijjmmnory aabeehiklmmsy
output:
aaabeehhiijjklmmmmnorsyy
result:
ok single line: 'aaabeehhiijjklmmmmnorsyy'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
aaaaabcdegghhhijlllmmnnnooppppqqrrrrssttuvwwwxyyzz hjno
output:
aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz
result:
ok single line: 'aaaaabcdegghhhhijjlllmmnnnnoooppppqqrrrrssttuvwwwxyyzz'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
ahijjmmnory bbbeeffggghiiijjjkkllnnnoooppqqqrsttuuvvwwwwwwyyzz
output:
abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz
result:
ok single line: 'abbbeeffggghhiiiijjjjjkkllmmnnnnooooppqqqrrsttuuvvwwwwwwyyyzz'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
aabbbbccgggggijjjjlllmmmnnooppqrtttuuuvvvwxxxxxyzz aabeehiklmmsy
output:
aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz
result:
ok single line: 'aaaabbbbbcceeggggghiijjjjkllllmmmmmnnooppqrstttuuuvvvwxxxxxyyzz'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
aaabceehiillmnorrtv aaaabbccddeeeefghijjknnnoopqrssssstttuuvwwxxxyyyyy
output:
aaaaaaabbbcccddeeeeeefghhiiijjkllmnnnnooopqrrrsssssttttuuvvwwxxxyyyyy
result:
ok single line: 'aaaaaaabbbcccddeeeeeefghhiiijj...ooopqrrrsssssttttuuvvwwxxxyyyyy'