QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#789920#6696. Three DiceNlll#WA 0ms3716kbC++17546b2024-11-27 22:46:252024-11-27 22:46:33

Judging History

你现在查看的是最新测评结果

  • [2024-11-27 22:46:33]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3716kb
  • [2024-11-27 22:46:25]
  • 提交

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