# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
447586 | LucaIlie | Football (info1cup20_football) | C11 | 37 ms | 1988 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 <stdio.h>
int main() {
int t, n, k, a, xor, max, p2, i;
scanf( "%d", &t );
while ( t-- ) {
scanf( "%d%d", &n, &k );
xor = 0;
max = 0;
for ( i = 0; i < n; i++ ) {
scanf( "%d", &a );
xor ^= a;
max = a > max ? a : max;
}
p2 = 2;
while ( p2 <= k && (xor & (p2 - 1)) == 0 )
p2 *= 2;
if ( (xor & (p2 - 1)) > 0 && p2 / 2 <= max )
printf( "1" );
else
printf( "0" );
}
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... |