1231 | 2022-03-27 13:49:19 | Valaki2 | Az óvodai lét elviselhetetlen könnyűsége #2 | cpp14 | Wrong answer 10/100 | 32ms | 22512 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 2060 KiB | ||||
2 | Wrong answer | 17ms | 2724 KiB | ||||
subtask2 | 0/20 | ||||||
3 | Wrong answer | 2ms | 2688 KiB | ||||
4 | Wrong answer | 2ms | 2744 KiB | ||||
5 | Wrong answer | 2ms | 2768 KiB | ||||
6 | Wrong answer | 2ms | 2756 KiB | ||||
7 | Wrong answer | 2ms | 2824 KiB | ||||
8 | Wrong answer | 2ms | 2872 KiB | ||||
9 | Wrong answer | 2ms | 2916 KiB | ||||
10 | Wrong answer | 3ms | 2972 KiB | ||||
subtask3 | 10/10 | ||||||
11 | Accepted | 21ms | 3420 KiB | ||||
12 | Accepted | 21ms | 4164 KiB | ||||
13 | Accepted | 20ms | 4892 KiB | ||||
14 | Accepted | 18ms | 5424 KiB | ||||
15 | Accepted | 20ms | 5960 KiB | ||||
16 | Accepted | 20ms | 6724 KiB | ||||
17 | Accepted | 21ms | 8616 KiB | ||||
subtask4 | 0/15 | ||||||
18 | Wrong answer | 2ms | 7920 KiB | ||||
19 | Wrong answer | 1ms | 7936 KiB | ||||
20 | Wrong answer | 12ms | 9248 KiB | ||||
21 | Wrong answer | 2ms | 8684 KiB | ||||
22 | Wrong answer | 13ms | 10008 KiB | ||||
23 | Accepted | 1ms | 9376 KiB | ||||
24 | Accepted | 1ms | 9376 KiB | ||||
25 | Wrong answer | 1ms | 9360 KiB | ||||
26 | Wrong answer | 1ms | 9392 KiB | ||||
27 | Wrong answer | 6ms | 9844 KiB | ||||
subtask5 | 0/55 | ||||||
28 | Wrong answer | 28ms | 11776 KiB | ||||
29 | Wrong answer | 30ms | 13340 KiB | ||||
30 | Wrong answer | 19ms | 13472 KiB | ||||
31 | Wrong answer | 19ms | 14196 KiB | ||||
32 | Wrong answer | 19ms | 15024 KiB | ||||
33 | Wrong answer | 20ms | 15784 KiB | ||||
34 | Wrong answer | 19ms | 16532 KiB | ||||
35 | Wrong answer | 21ms | 17284 KiB | ||||
36 | Wrong answer | 20ms | 18212 KiB | ||||
37 | Wrong answer | 23ms | 19204 KiB | ||||
38 | Wrong answer | 28ms | 20656 KiB | ||||
39 | Wrong answer | 32ms | 22512 KiB |