QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#788034#9579. 比分幻术abovecloud#AC ✓0ms3848kbC++14660b2024-11-27 15:41:022024-11-27 15:41:04

Judging History

This is the latest submission verdict.

  • [2024-11-27 15:41:04]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3848kb
  • [2024-11-27 15:41:02]
  • Submitted

answer

/*** WORK : 省赛\2024大连省赛\b.cpp ***/
/*** TIME : 2024/11/27 15:39 ***/
#include<bits/stdc++.h>
using namespace std;
#define all(v) v.begin(),v.end()
#define pb push_back
#define se second
#define fi first
#define int long long
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
const int MOD = (int) 1e9 + 7;
const int INF = INT_MAX;

void solve() {
    string s;
    cin >> s;
    cout << s[2] << s[1] <<s[0] << endl;
}

int32_t main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    cout << fixed << setprecision(12);
    int T = 1;
    // cin>>T;
    while (T--)solve();
}

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

詳細信息

Test #1:

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

input:

2-3

output:

3-2

result:

ok single line: '3-2'

Test #2:

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

input:

8-1

output:

1-8

result:

ok single line: '1-8'

Test #3:

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

input:

6-6

output:

6-6

result:

ok single line: '6-6'

Test #4:

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

input:

0-0

output:

0-0

result:

ok single line: '0-0'

Test #5:

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

input:

9-0

output:

0-9

result:

ok single line: '0-9'

Test #6:

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

input:

3-7

output:

7-3

result:

ok single line: '7-3'

Test #7:

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

input:

5-9

output:

9-5

result:

ok single line: '9-5'

Test #8:

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

input:

0-4

output:

4-0

result:

ok single line: '4-0'

Test #9:

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

input:

9-9

output:

9-9

result:

ok single line: '9-9'

Test #10:

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

input:

0-9

output:

9-0

result:

ok single line: '9-0'

Extra Test:

score: 0
Extra Test Passed