QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#410553#6696. Three Diceyi_y#WA 0ms3724kbC++11680b2024-05-14 09:17:552024-05-14 09:17:56

Judging History

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

  • [2024-05-14 09:17:56]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3724kb
  • [2024-05-14 09:17:55]
  • 提交

answer

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

詳細信息

Test #1:

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

input:

4 5

output:

Yes

result:

ok answer is YES

Test #2:

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

input:

3 0

output:

Yes

result:

ok answer is YES

Test #3:

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

input:

1 2

output:

No

result:

ok answer is NO

Test #4:

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

input:

0 0

output:

No

result:

ok answer is NO

Test #5:

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

input:

0 1

output:

No

result:

ok answer is NO

Test #6:

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

input:

0 2

output:

No

result:

ok answer is NO

Test #7:

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

input:

0 3

output:

No

result:

ok answer is NO

Test #8:

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

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: -100
Wrong Answer
time: 0ms
memory: 3588kb

input:

0 6

output:

No

result:

wrong answer expected YES, found NO