QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#789920 | #6696. Three Dice | Nlll# | WA | 0ms | 3716kb | C++17 | 546b | 2024-11-27 22:46:25 | 2024-11-27 22:46:33 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
void solve()
{
int A, B;
cin >> A >> B;
int ok = 0;
if(A == 1 || A == 4)
{
if(B >= 4 && B <= 12) ok = 1;
}
else if(A == 2 || A == 5 || A == 8)
{
if(B == 2 || B == 3 || B == 5 || B == 6) ok = 1;
}
else if(A == 3 || A == 6 || A == 9 || A == 12)
{
if(B == 0) ok = 1;
}
if(ok) cout << "Yes\n";
else cout << "No\n";
}
int main()
{
cin.tie(0)->sync_with_stdio(false);
solve();
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3716kb
input:
4 5
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
3 0
output:
Yes
result:
ok answer is YES
Test #3:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
1 2
output:
No
result:
ok answer is NO
Test #4:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
0 0
output:
No
result:
ok answer is NO
Test #5:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
0 1
output:
No
result:
ok answer is NO
Test #6:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
0 2
output:
No
result:
ok answer is NO
Test #7:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
0 3
output:
No
result:
ok answer is NO
Test #8:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
0 4
output:
No
result:
ok answer is NO
Test #9:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
0 5
output:
No
result:
ok answer is NO
Test #10:
score: -100
Wrong Answer
time: 0ms
memory: 3648kb
input:
0 6
output:
No
result:
wrong answer expected YES, found NO