QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#774379#9579. 比分幻术shmilycWA 0ms3796kbC++23486b2024-11-23 13:10:152024-11-23 13:10:15

Judging History

This is the latest submission verdict.

  • [2024-11-23 13:10:15]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3796kb
  • [2024-11-23 13:10:15]
  • Submitted

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'