QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#660168#2947. Ball of Whacksenze114514#WA 0ms3492kbC++201.3kb2024-10-20 08:10:472024-10-20 08:10:47

Judging History

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

  • [2024-10-20 08:10:47]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3492kb
  • [2024-10-20 08:10:47]
  • 提交

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;
}

Details

Tip: Click on the bar to expand more detailed information

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'