QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#682520 | #7779. Swiss Stage | zyq_313# | WA | 0ms | 3492kb | C++14 | 434b | 2024-10-27 15:51:07 | 2024-10-27 15:51:08 |
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: 0
Wrong Answer
time: 0ms
memory: 3492kb
input:
0 1
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements