QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#812330#9579. 比分幻术wikiWA 1ms3836kbC++14455b2024-12-13 14:16:572024-12-13 14:16:58

Judging History

This is the latest submission verdict.

  • [2024-12-13 14:16:58]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3836kb
  • [2024-12-13 14:16:57]
  • Submitted

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;
}

Details

Tip: Click on the bar to expand more detailed information

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'