# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
276938 | 2020-08-20T20:13:43 Z | thebes | Football (info1cup20_football) | C++14 | 65 ms | 2168 KB |
#include <bits/stdc++.h> using namespace std; const int MN = 1e5+5; int N, T, K, i, j, arr[MN], fl; long long sm; int main(){ scanf("%d",&T); while(T--){ scanf("%d%d",&N,&K); for(i=1;i<=N;i++){ scanf("%d",&arr[i]); } fl = 0; for(j=0;(1<<j)<=K;j++){ sm = 0; for(i=1;i<=N;i++){ sm += (arr[i]/(1<<j)); } if(sm&1){ fl = 1; break; } } printf("%s",fl?"1":"0"); } printf("\n"); return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 21 ms | 1408 KB | Output is correct |
2 | Correct | 21 ms | 1400 KB | Output is correct |
3 | Correct | 21 ms | 1400 KB | Output is correct |
4 | Correct | 21 ms | 1408 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 256 KB | Output is correct |
2 | Correct | 1 ms | 256 KB | Output is correct |
3 | Correct | 1 ms | 256 KB | Output is correct |
4 | Correct | 1 ms | 288 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 640 KB | Output is correct |
2 | Correct | 14 ms | 640 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 37 ms | 1016 KB | Output is correct |
2 | Correct | 37 ms | 1024 KB | Output is correct |
3 | Correct | 37 ms | 1024 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 62 ms | 2040 KB | Output is correct |
2 | Correct | 60 ms | 2040 KB | Output is correct |
3 | Correct | 65 ms | 2168 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 22 ms | 1408 KB | Output is correct |
2 | Correct | 22 ms | 1408 KB | Output is correct |
3 | Correct | 24 ms | 1408 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 29 ms | 1400 KB | Output is correct |
2 | Correct | 24 ms | 1408 KB | Output is correct |
3 | Correct | 33 ms | 1400 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 26 ms | 1528 KB | Output is correct |
2 | Correct | 32 ms | 1400 KB | Output is correct |