QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#280443 | #7779. Swiss Stage | ucup-team1191# | WA | 1ms | 3452kb | C++20 | 667b | 2023-12-09 16:10:39 | 2023-12-09 16:10:39 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define TIME (clock() * 1.0 / CLOCKS_PER_SEC)
void solve() {
int x, y;
cin >> x >> y;
if (x == 0) {
cout << "4\n";
return;
}
if (x == 1) {
if (y <= 1) {
cout << "3\n";
} else {
cout << "4\n";
}
return;
}
cout << "2\n";
}
int main() {
#ifdef ONPC
freopen("input", "r", stdin);
#endif
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int t = 1;
//cin >> t;
while (t--) {
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3392kb
input:
0 1
output:
4
result:
ok 1 number(s): "4"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
1 2
output:
4
result:
ok 1 number(s): "4"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3448kb
input:
0 0
output:
4
result:
ok 1 number(s): "4"
Test #4:
score: -100
Wrong Answer
time: 1ms
memory: 3452kb
input:
0 2
output:
4
result:
wrong answer 1st numbers differ - expected: '6', found: '4'