QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#544849 | #6696. Three Dice | manba_out | WA | 0ms | 3684kb | C++14 | 554b | 2024-09-02 20:36:17 | 2024-09-02 20:36:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int a,b;
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
cin>>a>>b;
if(a==0&&3<=b&&b<=18)cout<<"Yes";
else if(a==1&&2<=b&&b<=12)cout<<"Yes";
else if(a==2&&1<=b&&b<=6)cout<<"Yes";
else if(a==3&&b==0)cout<<"Yes";
else if(a==4&&2<=b&&b<=12)cout<<"Yes";
else if(a==5&&1<=b&&b<=6)cout<<"Yes";
else if(a==6&&b==0)cout<<"Yes";
else if(a==8&&1<=b&&b<=6)cout<<"Yes";
else if(a==9&&b==0)cout<<"Yes";
else if(a==12&&b==0)cout<<"Yes";
else cout<<"No";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3652kb
input:
4 5
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3684kb
input:
1 2
output:
Yes
result:
wrong answer expected NO, found YES