QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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;
}
详细
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