QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#715542#9579. 比分幻术carboxylBaseWA 0ms3856kbC++23394b2024-11-06 12:28:122024-11-06 12:28:16

Judging History

This is the latest submission verdict.

  • [2024-11-06 12:28:16]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3856kb
  • [2024-11-06 12:28:12]
  • Submitted

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int long long

void solve(){
	string s;
	cin >> s;
	if (s[2] > s[0]) swap(s[0],s[2]);
	cout << s << endl;
    return;
}

signed main(){
    // freopen("input.txt","r",stdin);
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    int _ = 1;
    while (_--){
        solve();
    }
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3560kb

input:

2-3

output:

3-2

result:

ok single line: '3-2'

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3856kb

input:

8-1

output:

8-1

result:

wrong answer 1st lines differ - expected: '1-8', found: '8-1'