# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
276938 | thebes | Football (info1cup20_football) | C++14 | 65 ms | 2168 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |