QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#812330 | #9579. 比分幻术 | wiki | WA | 1ms | 3836kb | C++14 | 455b | 2024-12-13 14:16:57 | 2024-12-13 14:16:58 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
const int N=2e5+20;
inline int read()
{
int k=0,f=1;
char ch=getchar();
while(ch<'0' || ch>'9'){if(ch=='-') f=-1;ch=getchar();}
while(ch>='0' && ch<='9'){k=(k<<1)+(k<<3)+ch-'0';ch=getchar();}
return f*k;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
int a,b;
scanf("%d-%d",&a,&b);
if(a<b) cout<<b<<'-'<<a;
else cout<<a<<'-'<<b;
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3748kb
input:
2-3
output:
3-2
result:
ok single line: '3-2'
Test #2:
score: -100
Wrong Answer
time: 1ms
memory: 3836kb
input:
8-1
output:
8-1
result:
wrong answer 1st lines differ - expected: '1-8', found: '8-1'