QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#712834#9579. 比分幻术shift#AC ✓1ms3796kbC++20223b2024-11-05 17:13:392024-11-05 17:13:39

Judging History

This is the latest submission verdict.

  • [2024-11-05 17:13:39]
  • Judged
  • Verdict: AC
  • Time: 1ms
  • Memory: 3796kb
  • [2024-11-05 17:13:39]
  • Submitted

answer

#include <bits/stdc++.h>

using i64 = long long;

int main() {
    std::string s;
    std::cin >> s;

    // if(s[0] < s[2]) {
        std::swap(s[0], s[2]);
    // }
    std::cout << s << '\n';
    return 0;
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3512kb

input:

2-3

output:

3-2

result:

ok single line: '3-2'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

8-1

output:

1-8

result:

ok single line: '1-8'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

6-6

output:

6-6

result:

ok single line: '6-6'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

0-0

output:

0-0

result:

ok single line: '0-0'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

9-0

output:

0-9

result:

ok single line: '0-9'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3544kb

input:

3-7

output:

7-3

result:

ok single line: '7-3'

Test #7:

score: 0
Accepted
time: 1ms
memory: 3540kb

input:

5-9

output:

9-5

result:

ok single line: '9-5'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

0-4

output:

4-0

result:

ok single line: '4-0'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

9-9

output:

9-9

result:

ok single line: '9-9'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

0-9

output:

9-0

result:

ok single line: '9-0'

Extra Test:

score: 0
Extra Test Passed