QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#618464 | #6696. Three Dice | xiaofanger | WA | 0ms | 3700kb | C++17 | 860b | 2024-10-06 22:31:55 | 2024-10-06 22:31:55 |
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 == 0) cnt = 3;
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(cnt == 2){
if(B == 2 || B == 3) cout << "No\n";
else cout << "Yes\n";
}
else {
if(B == 6) cout << "Yes\n";
else cout << "No\n";
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int __ = 1;
//cin >> __;
while(__--){
solve();
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3640kb
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: 3640kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
0 0
output:
No
result:
ok answer is NO
Test #5:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
0 1
output:
No
result:
ok answer is NO
Test #6:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
0 2
output:
No
result:
ok answer is NO
Test #7:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
0 3
output:
No
result:
ok answer is NO
Test #8:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
0 4
output:
No
result:
ok answer is NO
Test #9:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
0 5
output:
No
result:
ok answer is NO
Test #10:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
0 6
output:
Yes
result:
ok answer is YES
Test #11:
score: -100
Wrong Answer
time: 0ms
memory: 3572kb
input:
0 7
output:
No
result:
wrong answer expected YES, found NO