QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#521821 | #6696. Three Dice | zzisjtu# | WA | 0ms | 3732kb | C++23 | 607b | 2024-08-16 15:29:33 | 2024-08-16 15:29:34 |
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";
return 0;
}
if(a == 1 || a == 4) {
if(b == 4 || b == 5 || b == 7 || b == 8 || b == 9 || b == 6 || b == 10 || b == 11|| b == 12) {
cout << "Yes\n";
}
else cout << "No\n";
return 0;
}
else if(a == 2 || a == 8 || a == 5) {
if(b == 2 || b == 3 || b == 5 || b == 6) {
cout << "Yes\n";
}
else cout << "No\n";
return 0;
}
else if(a == 3 || a == 12) {
if(b == 0)cout << "Yes\n";
else cout << "No\n";
return 0;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3648kb
input:
4 5
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3508kb
input:
0 0
output:
result:
wrong output format Unexpected end of file - token expected