QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510881#7779. Swiss Stagefhvirus#WA 0ms3700kbC++17454b2024-08-09 13:51:032024-08-09 13:51:04

Judging History

你现在查看的是最新测评结果

  • [2024-08-09 13:51:04]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3700kb
  • [2024-08-09 13:51:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i = a; i < (b); ++i)
#define all(x) begin(x),end(x)
#define sz(x) (int) (x).size();
typedef long long ll;
typedef pair<int,int> pii;
typedef vector<int> vi;

int main() {
	cin.tie(0) -> sync_with_stdio(0);
	cin.exceptions(cin.failbit);

	int x, y;
	cin >> x >> y;

	if (y == 0)
		cout << 3 - x << '\n';
	if (y == 1)
		cout << 4 - x << '\n';
	if (y == 2)
		cout << 5 - x << '\n';
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3532kb

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

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

input:

0 0

output:

3

result:

wrong answer 1st numbers differ - expected: '4', found: '3'