QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#400350 | #6696. Three Dice | Delisha21U | WA | 1ms | 3712kb | C++17 | 775b | 2024-04-27 10:28:24 | 2024-04-27 10:28:25 |
Judging History
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