# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
332236 | evpipis | Football (info1cup20_football) | C++11 | 57 ms | 2068 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 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 (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... |