QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#410553 | #6696. Three Dice | yi_y# | WA | 0ms | 3724kb | C++11 | 680b | 2024-05-14 09:17:55 | 2024-05-14 09:17:56 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a>12||b>18)
{
cout<<"No"<<endl;
return 0;
}
if(a==0)
{
if(b==10||b==11||b==13||b==14)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
else if(a==1||a==4)
{
if(b==5||b==7||b==8||b==9||b==11)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
else if(a==2||a==5||a==8)
{
if(b==2||b==3||b==5||b==6)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
else if(a==3||a==6||a==9||a==12)
{
if(b==0)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3672kb
input:
4 5
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
0 0
output:
No
result:
ok answer is NO
Test #5:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
0 1
output:
No
result:
ok answer is NO
Test #6:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
0 2
output:
No
result:
ok answer is NO
Test #7:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
0 3
output:
No
result:
ok answer is NO
Test #8:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
0 4
output:
No
result:
ok answer is NO
Test #9:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
0 5
output:
No
result:
ok answer is NO
Test #10:
score: -100
Wrong Answer
time: 0ms
memory: 3588kb
input:
0 6
output:
No
result:
wrong answer expected YES, found NO