QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#618461#6696. Three DicexiaofangerWA 0ms3648kbC++17758b2024-10-06 22:30:052024-10-06 22:30:06

Judging History

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

  • [2024-10-06 22:30:06]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3648kb
  • [2024-10-06 22:30:05]
  • 提交

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