QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#712489 | #9579. 比分幻术 | KavenSky | AC ✓ | 0ms | 3904kb | C++23 | 511b | 2024-11-05 15:51:41 | 2024-11-05 15:51:42 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define INF 1e12
const int N=1e6+5;
typedef pair<int,int> P;
typedef long long ll;
typedef pair<ll,ll>Pll;
typedef __int128 i128;
const ll mod=1e9+7;
typedef long double db;
const db eps=1e-10;
mt19937_64 rnd(time(0));
void solve(){
string x;
cin >> x;
swap(x[0],x[2]);
cout << x << "\n";
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t=1;
//cin >> t;
while(t--)
solve();
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3752kb
input:
2-3
output:
3-2
result:
ok single line: '3-2'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
8-1
output:
1-8
result:
ok single line: '1-8'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
6-6
output:
6-6
result:
ok single line: '6-6'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
0-0
output:
0-0
result:
ok single line: '0-0'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
9-0
output:
0-9
result:
ok single line: '0-9'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
3-7
output:
7-3
result:
ok single line: '7-3'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
5-9
output:
9-5
result:
ok single line: '9-5'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
0-4
output:
4-0
result:
ok single line: '4-0'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
9-9
output:
9-9
result:
ok single line: '9-9'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
0-9
output:
9-0
result:
ok single line: '9-0'
Extra Test:
score: 0
Extra Test Passed