QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#618465#6696. Three DicexiaofangerWA 0ms3704kbC++17869b2024-10-06 22:32:512024-10-06 22:32:51

Judging History

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

  • [2024-10-06 22:32:51]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3704kb
  • [2024-10-06 22:32:51]
  • 提交

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 || A > 6){
		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;
}








 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 5

output:

Yes

result:

ok answer is YES

Test #2:

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

input:

3 0

output:

Yes

result:

ok answer is YES

Test #3:

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

input:

1 2

output:

No

result:

ok answer is NO

Test #4:

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

input:

0 0

output:

No

result:

ok answer is NO

Test #5:

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

input:

0 1

output:

No

result:

ok answer is NO

Test #6:

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

input:

0 2

output:

No

result:

ok answer is NO

Test #7:

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

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

input:

0 5

output:

No

result:

ok answer is NO

Test #10:

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

input:

0 6

output:

Yes

result:

ok answer is YES

Test #11:

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

input:

0 7

output:

No

result:

wrong answer expected YES, found NO