QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#695156#6696. Three Diceyxd#WA 0ms3716kbC++14678b2024-10-31 19:26:002024-10-31 19:26:01

Judging History

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

  • [2024-10-31 19:26:01]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3716kb
  • [2024-10-31 19:26:00]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e6+10;
int a[N];
signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr), cout.tie(nullptr);

    int A,B;
    cin>>A>>B;

    if((A==3&&B==0)||(A==2&&(B==2||B==3||B==5||B==6))||(A==1&&(B==4||B==5||B==6||B==7||B==8||B==9||B==10||B==11||B==12))){
        cout<<"Yes\n";
    }else if((A==12&&B==0)||(A==8&&(B==2||B==3||B==5||B==6))||(A==4&&(B==4||B==5||B==6||B==7||B==8||B==9||B==10||B==11||B==12))){
        cout<<"Yes\n";
    }else if(((A==6||A==9)&&B==0)||(A==5&&(B==2||B==3||B==5||B==6))){
        cout<<"Yes\n";
    }else{
        cout<<"No\n";
    }

}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3592kb

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: 3716kb

input:

1 2

output:

No

result:

ok answer is NO

Test #4:

score: 0
Accepted
time: 0ms
memory: 3636kb

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: 3704kb

input:

0 2

output:

No

result:

ok answer is NO

Test #7:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

0 3

output:

No

result:

ok answer is NO

Test #8:

score: 0
Accepted
time: 0ms
memory: 3656kb

input:

0 4

output:

No

result:

ok answer is NO

Test #9:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

0 5

output:

No

result:

ok answer is NO

Test #10:

score: -100
Wrong Answer
time: 0ms
memory: 3568kb

input:

0 6

output:

No

result:

wrong answer expected YES, found NO