QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#521821#6696. Three Dicezzisjtu#WA 0ms3732kbC++23607b2024-08-16 15:29:332024-08-16 15:29:34

Judging History

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

  • [2024-08-16 15:29:34]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3732kb
  • [2024-08-16 15:29:33]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if(a > 12 || b > 18) {
		cout << "No";
		return 0;
	}
	if(a == 1 || a == 4) {
		if(b == 4 || b == 5 || b == 7 || b == 8 || b == 9 || b == 6 || b == 10 || b == 11|| b == 12) {
			cout << "Yes\n";
		}
		else cout << "No\n";
		return 0;
	}
	else if(a == 2 || a == 8 || a == 5) {
		if(b == 2 || b == 3 || b == 5 || b == 6) {
			cout << "Yes\n";
		}
		else cout << "No\n";
		return 0;
	}
	else if(a == 3 || a == 12) {
		if(b == 0)cout << "Yes\n";
		else cout << "No\n";
		return 0;
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

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

input:

3 0

output:

Yes

result:

ok answer is YES

Test #3:

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

input:

1 2

output:

No

result:

ok answer is NO

Test #4:

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

input:

0 0

output:


result:

wrong output format Unexpected end of file - token expected