QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#695156 | #6696. Three Dice | yxd# | WA | 0ms | 3716kb | C++14 | 678b | 2024-10-31 19:26:00 | 2024-10-31 19:26:01 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e6+10;
int a[N];
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
int A,B;
cin>>A>>B;
if((A==3&&B==0)||(A==2&&(B==2||B==3||B==5||B==6))||(A==1&&(B==4||B==5||B==6||B==7||B==8||B==9||B==10||B==11||B==12))){
cout<<"Yes\n";
}else if((A==12&&B==0)||(A==8&&(B==2||B==3||B==5||B==6))||(A==4&&(B==4||B==5||B==6||B==7||B==8||B==9||B==10||B==11||B==12))){
cout<<"Yes\n";
}else if(((A==6||A==9)&&B==0)||(A==5&&(B==2||B==3||B==5||B==6))){
cout<<"Yes\n";
}else{
cout<<"No\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
4 5
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
0 0
output:
No
result:
ok answer is NO
Test #5:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
0 1
output:
No
result:
ok answer is NO
Test #6:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
0 2
output:
No
result:
ok answer is NO
Test #7:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
0 3
output:
No
result:
ok answer is NO
Test #8:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
0 4
output:
No
result:
ok answer is NO
Test #9:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
0 5
output:
No
result:
ok answer is NO
Test #10:
score: -100
Wrong Answer
time: 0ms
memory: 3568kb
input:
0 6
output:
No
result:
wrong answer expected YES, found NO