12312022-03-27 13:49:19Valaki2Az óvodai lét elviselhetetlen könnyűsége #2cpp14Wrong answer 10/10032ms22512 KiB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define fi first
#define se second

int n, q;
vector<int> v;

void solve() {
    cin >> n >> q;
    v.assign(n, 0);
    int maxi = 0;
    for(int i = 0; i < n; i++) {
        cin >> v[i];
        maxi = max(maxi, v[i]);
    }
    for(int i = 0; i < q; i++) {
        int x;
        cin >> x;
        cout << (x < maxi ? 1 : 0) << "\n";
    }
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    solve();
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms2060 KiB
2Wrong answer17ms2724 KiB
subtask20/20
3Wrong answer2ms2688 KiB
4Wrong answer2ms2744 KiB
5Wrong answer2ms2768 KiB
6Wrong answer2ms2756 KiB
7Wrong answer2ms2824 KiB
8Wrong answer2ms2872 KiB
9Wrong answer2ms2916 KiB
10Wrong answer3ms2972 KiB
subtask310/10
11Accepted21ms3420 KiB
12Accepted21ms4164 KiB
13Accepted20ms4892 KiB
14Accepted18ms5424 KiB
15Accepted20ms5960 KiB
16Accepted20ms6724 KiB
17Accepted21ms8616 KiB
subtask40/15
18Wrong answer2ms7920 KiB
19Wrong answer1ms7936 KiB
20Wrong answer12ms9248 KiB
21Wrong answer2ms8684 KiB
22Wrong answer13ms10008 KiB
23Accepted1ms9376 KiB
24Accepted1ms9376 KiB
25Wrong answer1ms9360 KiB
26Wrong answer1ms9392 KiB
27Wrong answer6ms9844 KiB
subtask50/55
28Wrong answer28ms11776 KiB
29Wrong answer30ms13340 KiB
30Wrong answer19ms13472 KiB
31Wrong answer19ms14196 KiB
32Wrong answer19ms15024 KiB
33Wrong answer20ms15784 KiB
34Wrong answer19ms16532 KiB
35Wrong answer21ms17284 KiB
36Wrong answer20ms18212 KiB
37Wrong answer23ms19204 KiB
38Wrong answer28ms20656 KiB
39Wrong answer32ms22512 KiB