# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
887001 | Turcavid | Football (info1cup20_football) | C++14 | 2044 ms | 440 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;
int32_t main()
{
int t;
cin>>t;
while(t--)
{
int n, k0;
cin>>n>>k0;
bool ok=false;
for(int i=0; i<32; i++)
{
int k=(1<<i);
if(k0&k == 0)
continue;
int xsum=0;
for(int i=1; i<=n; i++)
{
int a;
cin>>a;
int c=a/k;
int r=a%k;
if(c%2 == 1)
{
c=k;
}
else
{
c=0;
}
xsum=(xsum^(c^r));
}
if(xsum != 0)
ok=true;
}
cout<<ok;
}
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... |