QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#660168 | #2947. Ball of Whacks | enze114514# | WA | 0ms | 3492kb | C++20 | 1.3kb | 2024-10-20 08:10:47 | 2024-10-20 08:10:47 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define pb push_back
const ld pi = 3.14159265358979323846;
const int mod = 998244353;
const ll INF = 1e18;
template<typename T>
T chmax(T a, T b) {
return a > b ? a : b;
}
template<typename T>
T chmin(T a, T b) {
return a > b ? b : a;
}
const int N = (int) 1e5 + 1, M = N * 2;
void solve() {
int a1 = 0, a2 = 0, a3 = 0;
for (int i = 0; i < 3; i++) {
int n;
cin >> n;
for (int j = 0; j < n; j++) {
int x;
cin >> x;
if ((x >= 1 && x <= 5) || (x >= 26 && x <= 30)) {
a1++;
}
if ((x >= 6 && x <= 10) || (x >= 21 && x <= 25)) {
a2++;
}
if (x >= 11 && x <= 20) {
a3++;
}
}
}
if (a1 == 10 && a2 == 10 && a3 == 10) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t = 1;
// cin >> t;
while (t--) {
solve();
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3492kb
input:
10 1 2 3 4 5 6 7 8 9 10 10 1 2 7 13 22 28 29 24 18 10 10 1 2 3 4 5 6 7 8 9 10
output:
No
result:
wrong answer 1st lines differ - expected: 'Yes', found: 'No'