QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#774379 | #9579. 比分幻术 | shmilyc | WA | 0ms | 3796kb | C++23 | 486b | 2024-11-23 13:10:15 | 2024-11-23 13:10:15 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
const int N=1e5+5;
#define int long long
#define mp make_pair
void solve()
{
int a=0,b=0;
scanf("%d-%d",&a,&b);
// cout<<a<<' '<<b<<endl;
// cout<<c<<endl;
cout<<max(a,b)<<'-'<<min(a,b)<<endl;
return;
}
signed main()
{
// ios::sync_with_stdio(0);
// cin.tie(0);cout.tie(0);
int T;
// cin>>T;
T=1;
while(T--)
solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3796kb
input:
2-3
output:
3-2
result:
ok single line: '3-2'
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3628kb
input:
8-1
output:
8-1
result:
wrong answer 1st lines differ - expected: '1-8', found: '8-1'