QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#746229 | #9579. 比分幻术 | BananaWolf# | AC ✓ | 0ms | 3812kb | C++14 | 1.1kb | 2024-11-14 13:54:56 | 2024-11-14 13:54:56 |
Judging History
answer
//和爸爸一起学编程真好,不过要小学四年级分流考试了,最近没时间写代码了,呜呜呜
#include<bits/stdc++.h>
using namespace std;
#define out(x) cout << #x << '=' << (x) << endl
#define out2(x, y) cout << #x << '=' << (x) << ',' << #y << '=' << (y) << endl
#define int long long
#define lc u<<1
#define rc u<<1|1
#define pb push_back
#define vt vector
#define fi first
#define se second
#define PII pair<int,int>
#define endl "\n"
#define il inline
typedef unsigned long long ULL;
typedef long long ll;
il int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
return x*f;
}
const ll inf = 0x3f3f3f3f3f3f3f3fLL;
const int infi = 0x3f3f3f3f;
const int P = 13331;
const int N = 200005;
void solve(){
string s;
cin >> s;
cout << s[2] << s[1] << s[0];
}
signed main(){
std::ios::sync_with_stdio(0);
std::cin.tie(0);
std::cout.tie(0);
int times = 1;
//cin >> times;
while(times--){
solve();
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3552kb
input:
2-3
output:
3-2
result:
ok single line: '3-2'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
8-1
output:
1-8
result:
ok single line: '1-8'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
6-6
output:
6-6
result:
ok single line: '6-6'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
0-0
output:
0-0
result:
ok single line: '0-0'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
9-0
output:
0-9
result:
ok single line: '0-9'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
3-7
output:
7-3
result:
ok single line: '7-3'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
5-9
output:
9-5
result:
ok single line: '9-5'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0-4
output:
4-0
result:
ok single line: '4-0'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9-9
output:
9-9
result:
ok single line: '9-9'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
0-9
output:
9-0
result:
ok single line: '9-0'
Extra Test:
score: 0
Extra Test Passed