QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#400350#6696. Three DiceDelisha21UWA 1ms3712kbC++17775b2024-04-27 10:28:242024-04-27 10:28:25

Judging History

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

  • [2024-04-27 10:28:25]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3712kb
  • [2024-04-27 10:28:24]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 1e4 + 10;

void solve()
{
	int n, m;
	cin >> n >> m;
	if (n == 0)
	{
		if (6 <= m && m <= 18)
			cout << "Yes";
		else
			cout << "No";
	}
	if (n == 1 || n == 4)
	{
		if (m >= 4 && m <= 12)
			cout << "Yes";
		else
			cout << "No";
	}
	if (n == 2 || n == 5 || n == 8)
	{
		if (m == 2 || m == 3 || m == 5 || m == 6)
			cout << "Yes";
		else
			cout << "No";
	}
	if (n == 3 || n == 6 || n == 9 || n == 12)
	{
		if (m == 0)
			cout << "Yes";
		else
			cout << "No";
	}
	else cout<<"No";
	return;
}

signed main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t;
	t = 1;
	// cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3712kb

input:

4 5

output:

YesNo

result:

wrong output format YES or NO expected, but YESNO found