QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#27250 | #3540. Partial Sums | George_Plover# | AC ✓ | 363ms | 72132kb | C++20 | 974b | 2022-04-09 13:27:00 | 2022-04-29 05:31:06 |
Judging History
answer
#include <bits/stdc++.h>
#define rep(i, l, r) for (int i = l; i <= r; i++)
#define per(i, r, l) for (int i = r; i >= l; --i)
using namespace std;
typedef long long ll;
const int N = 1000006;
const int inf = 1e9;
int n, m;
string s[N];
string t[N];
bool check(int d) {
rep(i, 0, n - 1) t[i] = s[i];
rep(i, 0, n - 1) {
rep(j, 0, m - 1) {
bool now = t[i][j] - '0';
if (i >= d) now ^= t[i - d][j] - '0';
if (j >= d) now ^= t[i][j - d] - '0';
if (i >= d && j >= d) now ^= t[i - d][j - d] - '0';
t[i][j] = now + '0';
}
}
rep(i, 0, n - 1) {
if (t[i] != s[i]) return false;
}
return true;
}
int main() {
scanf("%d%d", &n, &m);
rep(i, 0, n - 1) { cin >> s[i]; }
for (int k = 0; (1 << k) <= max(n, m) * 2; k++) {
if (check(1 << k)) {
printf("%d\n", 1 << k);
break;
}
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 9ms
memory: 66256kb
input:
1 1 1
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 8ms
memory: 66228kb
input:
4 2 00 01 10 11
output:
4
result:
ok 1 number(s): "4"
Test #3:
score: 0
Accepted
time: 8ms
memory: 66472kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 00000000000000000000000000000000000...
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 8ms
memory: 66540kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011 00000000000000000000000000000000000...
output:
2
result:
ok 1 number(s): "2"
Test #5:
score: 0
Accepted
time: 7ms
memory: 66468kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111 00000000000000000000000000000000000...
output:
4
result:
ok 1 number(s): "4"
Test #6:
score: 0
Accepted
time: 7ms
memory: 66456kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111 00000000000000000000000000000000000...
output:
8
result:
ok 1 number(s): "8"
Test #7:
score: 0
Accepted
time: 15ms
memory: 66476kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111 00000000000000000000000000000000000...
output:
16
result:
ok 1 number(s): "16"
Test #8:
score: 0
Accepted
time: 4ms
memory: 66484kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111 00000000000000000000000000000000000...
output:
32
result:
ok 1 number(s): "32"
Test #9:
score: 0
Accepted
time: 8ms
memory: 66404kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111 00000000000000000000000000000000000...
output:
64
result:
ok 1 number(s): "64"
Test #10:
score: 0
Accepted
time: 11ms
memory: 66404kb
input:
256 256 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 00000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #11:
score: 0
Accepted
time: 20ms
memory: 66380kb
input:
256 256 1101100001110011000110010010011100100011111000001100000101111110111110110011100111000001111001111100101010000000111100011011110001110001100100010010000010100101011100000100110101000001000011000001010111111001101100100110101010010000011111011111011111000011 11110101100000011100011100101001000...
output:
256
result:
ok 1 number(s): "256"
Test #12:
score: 0
Accepted
time: 20ms
memory: 67080kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1
result:
ok 1 number(s): "1"
Test #13:
score: 0
Accepted
time: 16ms
memory: 67016kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
2
result:
ok 1 number(s): "2"
Test #14:
score: 0
Accepted
time: 11ms
memory: 66900kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
4
result:
ok 1 number(s): "4"
Test #15:
score: 0
Accepted
time: 14ms
memory: 66940kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
8
result:
ok 1 number(s): "8"
Test #16:
score: 0
Accepted
time: 14ms
memory: 67012kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
16
result:
ok 1 number(s): "16"
Test #17:
score: 0
Accepted
time: 22ms
memory: 67020kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
32
result:
ok 1 number(s): "32"
Test #18:
score: 0
Accepted
time: 19ms
memory: 67032kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
64
result:
ok 1 number(s): "64"
Test #19:
score: 0
Accepted
time: 15ms
memory: 67060kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #20:
score: 0
Accepted
time: 12ms
memory: 67040kb
input:
512 512 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111...
output:
256
result:
ok 1 number(s): "256"
Test #21:
score: 0
Accepted
time: 39ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
1
result:
ok 1 number(s): "1"
Test #22:
score: 0
Accepted
time: 50ms
memory: 66344kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
2
result:
ok 1 number(s): "2"
Test #23:
score: 0
Accepted
time: 52ms
memory: 66280kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
4
result:
ok 1 number(s): "4"
Test #24:
score: 0
Accepted
time: 53ms
memory: 66280kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
8
result:
ok 1 number(s): "8"
Test #25:
score: 0
Accepted
time: 58ms
memory: 66348kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
16
result:
ok 1 number(s): "16"
Test #26:
score: 0
Accepted
time: 59ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
32
result:
ok 1 number(s): "32"
Test #27:
score: 0
Accepted
time: 73ms
memory: 66208kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
64
result:
ok 1 number(s): "64"
Test #28:
score: 0
Accepted
time: 74ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
128
result:
ok 1 number(s): "128"
Test #29:
score: 0
Accepted
time: 64ms
memory: 66256kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
256
result:
ok 1 number(s): "256"
Test #30:
score: 0
Accepted
time: 81ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
512
result:
ok 1 number(s): "512"
Test #31:
score: 0
Accepted
time: 73ms
memory: 66284kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
1024
result:
ok 1 number(s): "1024"
Test #32:
score: 0
Accepted
time: 84ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
2048
result:
ok 1 number(s): "2048"
Test #33:
score: 0
Accepted
time: 83ms
memory: 66260kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
4096
result:
ok 1 number(s): "4096"
Test #34:
score: 0
Accepted
time: 99ms
memory: 66276kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
8192
result:
ok 1 number(s): "8192"
Test #35:
score: 0
Accepted
time: 96ms
memory: 66276kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
16384
result:
ok 1 number(s): "16384"
Test #36:
score: 0
Accepted
time: 81ms
memory: 66264kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
32768
result:
ok 1 number(s): "32768"
Test #37:
score: 0
Accepted
time: 97ms
memory: 66272kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
65536
result:
ok 1 number(s): "65536"
Test #38:
score: 0
Accepted
time: 108ms
memory: 66212kb
input:
200000 5 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 000...
output:
131072
result:
ok 1 number(s): "131072"
Test #39:
score: 0
Accepted
time: 93ms
memory: 66212kb
input:
200000 5 01010 11101 00000 00110 01111 10101 11110 01010 11100 01011 10000 01110 01001 01011 00101 10110 11001 01111 10111 01000 11101 01011 00000 00011 00010 10011 00001 01010 10100 00010 11010 01100 10101 00011 11011 00110 01110 01001 00101 10000 01000 10011 10111 10101 01101 11000 10011 10000 110...
output:
262144
result:
ok 1 number(s): "262144"
Test #40:
score: 0
Accepted
time: 47ms
memory: 66256kb
input:
125000 8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000...
output:
2
result:
ok 1 number(s): "2"
Test #41:
score: 0
Accepted
time: 38ms
memory: 68348kb
input:
17 58823 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #42:
score: 0
Accepted
time: 44ms
memory: 68044kb
input:
7 142857 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #43:
score: 0
Accepted
time: 70ms
memory: 71552kb
input:
55555 18 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000000000000000 000000...
output:
16384
result:
ok 1 number(s): "16384"
Test #44:
score: 0
Accepted
time: 43ms
memory: 68280kb
input:
18 55555 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1024
result:
ok 1 number(s): "1024"
Test #45:
score: 0
Accepted
time: 76ms
memory: 72120kb
input:
62500 16 1001001011100101 0011100100100111 1001101101011111 1001101010110110 1011110001000101 1001011100100011 0001111101110001 0001111010011011 1011100111101110 0010001000111100 0110111010101011 1111100001011111 1111101001001100 1000110000010000 0010001010000101 0101111001011001 0011101111110110 10...
output:
65536
result:
ok 1 number(s): "65536"
Test #46:
score: 0
Accepted
time: 70ms
memory: 66276kb
input:
111111 9 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 0...
output:
512
result:
ok 1 number(s): "512"
Test #47:
score: 0
Accepted
time: 67ms
memory: 72132kb
input:
62500 16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00...
output:
256
result:
ok 1 number(s): "256"
Test #48:
score: 0
Accepted
time: 62ms
memory: 68112kb
input:
19 52631 100001111010000010000101000101000011010101011100101111111100001010010101001110100011011000001101100000100100011100001111100111000100100101001100111010100111100100011100111101110001110101000000010100001110010111001010001100001011011101011101100111000001111001001101000010111001011001000000011...
output:
65536
result:
ok 1 number(s): "65536"
Test #49:
score: 0
Accepted
time: 48ms
memory: 67808kb
input:
2 500000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
262144
result:
ok 1 number(s): "262144"
Test #50:
score: 0
Accepted
time: 52ms
memory: 68184kb
input:
17 58823 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
512
result:
ok 1 number(s): "512"
Test #51:
score: 0
Accepted
time: 33ms
memory: 67892kb
input:
2 500000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
2
result:
ok 1 number(s): "2"
Test #52:
score: 0
Accepted
time: 42ms
memory: 68080kb
input:
20 50000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1024
result:
ok 1 number(s): "1024"
Test #53:
score: 0
Accepted
time: 116ms
memory: 66288kb
input:
500000 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...
output:
32
result:
ok 1 number(s): "32"
Test #54:
score: 0
Accepted
time: 84ms
memory: 66188kb
input:
250000 4 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0...
output:
64
result:
ok 1 number(s): "64"
Test #55:
score: 0
Accepted
time: 41ms
memory: 68736kb
input:
778 1284 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010000001100110101001100100110...
output:
1024
result:
ok 1 number(s): "1024"
Test #56:
score: 0
Accepted
time: 47ms
memory: 68308kb
input:
528 1891 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
64
result:
ok 1 number(s): "64"
Test #57:
score: 0
Accepted
time: 47ms
memory: 68324kb
input:
542 1844 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
16
result:
ok 1 number(s): "16"
Test #58:
score: 0
Accepted
time: 34ms
memory: 68560kb
input:
125 8000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
4
result:
ok 1 number(s): "4"
Test #59:
score: 0
Accepted
time: 54ms
memory: 69160kb
input:
962 1039 010001111011000001011010111101010111101101000011011000110101111011101111000110001111110000110101010110010011011111001110110101110110110111101010110111111101100110101011011001001100100110000011110011000100000110100001100000111010100000010000101101100000101101001010000100101001100010101011011...
output:
2048
result:
ok 1 number(s): "2048"
Test #60:
score: 0
Accepted
time: 63ms
memory: 68492kb
input:
112 8928 111000100101000000100011111011100110001110110111100011100110000000000100100101111111101111010101100101101111101011000000100100001011010010011100000111000011101011000010100010010100100100011101110000110111110011000100000100011110011101001100000000001011100111011010000111010011010111111100110...
output:
16384
result:
ok 1 number(s): "16384"
Test #61:
score: 0
Accepted
time: 51ms
memory: 69092kb
input:
963 1038 111011010000011110011010110000001010101101010111100000011000101111000101011110011111100101110110010010001111000101110111001010011111000100110111100111101011011101100000101111100001100111010111110100110110100101111001010101010000001100011000111111100011010100000101001000001110110100011100010...
output:
2048
result:
ok 1 number(s): "2048"
Test #62:
score: 0
Accepted
time: 36ms
memory: 68456kb
input:
1304 766 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1
result:
ok 1 number(s): "1"
Test #63:
score: 0
Accepted
time: 54ms
memory: 68348kb
input:
1141 876 101110110000111001111101110101001100101101001010110011010010111010010110011011011010100010001111011110011110101011000100011000010111001100111101101110111101110010111110100011101111011001111000011100000101100001111110100001100100110100101111110110010001111110110010000100001111110100100101101...
output:
2048
result:
ok 1 number(s): "2048"
Test #64:
score: 0
Accepted
time: 29ms
memory: 68576kb
input:
1283 779 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1
result:
ok 1 number(s): "1"
Test #65:
score: 0
Accepted
time: 51ms
memory: 68396kb
input:
1165 858 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #66:
score: 0
Accepted
time: 59ms
memory: 69124kb
input:
1991 502 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
64
result:
ok 1 number(s): "64"
Test #67:
score: 0
Accepted
time: 45ms
memory: 68380kb
input:
588 1699 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
128
result:
ok 1 number(s): "128"
Test #68:
score: 0
Accepted
time: 50ms
memory: 68836kb
input:
6172 162 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
64
result:
ok 1 number(s): "64"
Test #69:
score: 0
Accepted
time: 42ms
memory: 69204kb
input:
509 1961 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
8
result:
ok 1 number(s): "8"
Test #70:
score: 0
Accepted
time: 294ms
memory: 66272kb
input:
1000000 1 0 0 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 0 0 0 1 0 1 0 0 1 1 0 0 1 1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 1 1 1 1 1 1 0 1 0 1 1 0 0 1 0 0 0 1 0 0 ...
output:
1048576
result:
ok 1 number(s): "1048576"
Test #71:
score: 0
Accepted
time: 56ms
memory: 67692kb
input:
1 1000000 11110111100010110001000100110100101110111001011000101000001110001010001100001101111000101100111000111110100011110101100111011110000101001101011110100110010100101010110101001101011111001000011111001100000100010000000110001010101001010100110001101101010001100111010011100000001011011000001100...
output:
1048576
result:
ok 1 number(s): "1048576"
Test #72:
score: 0
Accepted
time: 355ms
memory: 66296kb
input:
1000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
262144
result:
ok 1 number(s): "262144"
Test #73:
score: 0
Accepted
time: 80ms
memory: 67868kb
input:
1 1000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
262144
result:
ok 1 number(s): "262144"
Test #74:
score: 0
Accepted
time: 363ms
memory: 66212kb
input:
1000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
131072
result:
ok 1 number(s): "131072"
Test #75:
score: 0
Accepted
time: 57ms
memory: 67976kb
input:
1 1000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
131072
result:
ok 1 number(s): "131072"