QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#618461 | #6696. Three Dice | xiaofanger | WA | 0ms | 3648kb | C++17 | 758b | 2024-10-06 22:30:05 | 2024-10-06 22:30:06 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
void solve() {
int A , B; cin >> A >> B;
if(B == 1){
cout << "No\n";
return;
}
int cnt;
if(A == 2) cnt = 1;
if(A == 1) cnt = 2;
if(A == 3) cnt = 0;
if(A == 4) cnt = 2;
if(A == 5) cnt = 1;
if(A == 6) cnt = 0;
if(cnt == 0){
if(B) cout << "No\n";
else cout << "Yes\n";
}
else if(cnt == 1){
if(B == 4) cout << "No\n";
else cout << "Yes\n";
}
else {
if(B == 2 || B == 3) cout << "No\n";
else cout << "Yes\n";
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int __ = 1;
//cin >> __;
while(__--){
solve();
}
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: 3576kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3580kb
input:
0 0
output:
Yes
result:
wrong answer expected NO, found YES