QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#682530 | #7779. Swiss Stage | zyq_313# | WA | 0ms | 3700kb | C++14 | 438b | 2024-10-27 15:52:49 | 2024-10-27 15:52:50 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void solve(){
int x, y;
cin >> x >> y;
if(x==0&&y==1||x==0&&y==2||x==1&&y==1||x==1&&y==2||x==0&&y==0) cout<<4<<endl;
//else if(x==2&&y==0) cout<<0<<endl;
else if(x==2) cout<<2<<endl;
else if(x==1&&y==0) cout<<3<<endl;
}
int main(){
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int t = 1;
// cin >> t;
while (t --) solve();
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
0 1
output:
4
result:
ok 1 number(s): "4"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
1 2
output:
4
result:
ok 1 number(s): "4"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
0 0
output:
4
result:
ok 1 number(s): "4"
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3540kb
input:
0 2
output:
4
result:
wrong answer 1st numbers differ - expected: '6', found: '4'