# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
332236 | 2020-12-01T18:24:31 Z | evpipis | Football (info1cup20_football) | C++11 | 57 ms | 2068 KB |
#include <bits/stdc++.h> using namespace std; const int len = 1e5+5; int arr[len]; int main(){ int t; scanf("%d", &t); while (t--){ int n, k; scanf("%d %d", &n, &k); for (int i = 0; i < n; i++) scanf("%d", &arr[i]); int ans = 0; for (int po = 1; po <= k; po*=2){ int sum = 0; for (int i = 0; i < n; i++) sum ^= (arr[i]/po)%2; if (sum) ans = 1; } printf("%d", ans); } printf("\n"); return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 17 ms | 1516 KB | Output is correct |
2 | Correct | 21 ms | 1388 KB | Output is correct |
3 | Correct | 17 ms | 1388 KB | Output is correct |
4 | Correct | 17 ms | 1388 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 1 ms | 364 KB | Output is correct |
3 | Correct | 1 ms | 364 KB | Output is correct |
4 | Correct | 1 ms | 364 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 620 KB | Output is correct |
2 | Correct | 14 ms | 620 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 36 ms | 1132 KB | Output is correct |
2 | Correct | 35 ms | 1152 KB | Output is correct |
3 | Correct | 36 ms | 1024 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 56 ms | 2028 KB | Output is correct |
2 | Correct | 57 ms | 2068 KB | Output is correct |
3 | Correct | 55 ms | 2028 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 19 ms | 1388 KB | Output is correct |
2 | Correct | 18 ms | 1516 KB | Output is correct |
3 | Correct | 19 ms | 1388 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 32 ms | 1388 KB | Output is correct |
2 | Correct | 24 ms | 1388 KB | Output is correct |
3 | Correct | 31 ms | 1388 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 28 ms | 1388 KB | Output is correct |
2 | Correct | 31 ms | 1388 KB | Output is correct |