Task: | Bomb |
Sender: | ollpu |
Submission time: | 2019-02-10 16:24:25 +0200 |
Language: | C++ |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 1 |
#2 | ACCEPTED | 1 |
#3 | ACCEPTED | 1 |
#4 | ACCEPTED | 1 |
#5 | ACCEPTED | 1 |
#6 | ACCEPTED | 1 |
#7 | ACCEPTED | 1 |
#8 | ACCEPTED | 1 |
#9 | ACCEPTED | 1 |
#10 | ACCEPTED | 1 |
#11 | ACCEPTED | 1 |
#12 | ACCEPTED | 1 |
#13 | ACCEPTED | 1 |
#14 | ACCEPTED | 1 |
#15 | ACCEPTED | 1 |
#16 | ACCEPTED | 1 |
#17 | ACCEPTED | 1 |
#18 | ACCEPTED | 1 |
#19 | ACCEPTED | 1 |
#20 | ACCEPTED | 1 |
#21 | ACCEPTED | 1 |
#22 | ACCEPTED | 1 |
#23 | ACCEPTED | 1 |
#24 | ACCEPTED | 1 |
#25 | ACCEPTED | 1 |
#26 | ACCEPTED | 1 |
#27 | ACCEPTED | 1 |
#28 | ACCEPTED | 1 |
#29 | ACCEPTED | 1 |
#30 | ACCEPTED | 1 |
#31 | ACCEPTED | 1 |
#32 | ACCEPTED | 1 |
#33 | ACCEPTED | 1 |
#34 | ACCEPTED | 1 |
#35 | ACCEPTED | 1 |
#36 | ACCEPTED | 1 |
#37 | ACCEPTED | 1 |
#38 | ACCEPTED | 1 |
#39 | ACCEPTED | 1 |
#40 | ACCEPTED | 1 |
#41 | ACCEPTED | 1 |
#42 | ACCEPTED | 1 |
#43 | ACCEPTED | 1 |
#44 | ACCEPTED | 1 |
#45 | ACCEPTED | 1 |
#46 | ACCEPTED | 1 |
#47 | ACCEPTED | 1 |
#48 | ACCEPTED | 1 |
#49 | ACCEPTED | 1 |
#50 | ACCEPTED | 1 |
#51 | ACCEPTED | 1 |
#52 | ACCEPTED | 1 |
#53 | ACCEPTED | 1 |
#54 | ACCEPTED | 1 |
#55 | ACCEPTED | 1 |
#56 | ACCEPTED | 1 |
#57 | ACCEPTED | 1 |
#58 | ACCEPTED | 1 |
#59 | ACCEPTED | 1 |
#60 | ACCEPTED | 1 |
#61 | ACCEPTED | 1 |
#62 | ACCEPTED | 1 |
#63 | ACCEPTED | 1 |
#64 | ACCEPTED | 1 |
#65 | ACCEPTED | 1 |
#66 | ACCEPTED | 1 |
#67 | ACCEPTED | 1 |
#68 | ACCEPTED | 1 |
#69 | ACCEPTED | 1 |
#70 | ACCEPTED | 1 |
#71 | ACCEPTED | 1 |
#72 | ACCEPTED | 1 |
#73 | ACCEPTED | 1 |
#74 | ACCEPTED | 1 |
#75 | ACCEPTED | 1 |
#76 | ACCEPTED | 1 |
#77 | ACCEPTED | 1 |
#78 | ACCEPTED | 1 |
#79 | ACCEPTED | 1 |
#80 | ACCEPTED | 1 |
#81 | ACCEPTED | 1 |
#82 | ACCEPTED | 1 |
#83 | ACCEPTED | 1 |
#84 | ACCEPTED | 1 |
#85 | ACCEPTED | 1 |
#86 | ACCEPTED | 1 |
#87 | ACCEPTED | 1 |
#88 | ACCEPTED | 1 |
#89 | ACCEPTED | 1 |
#90 | ACCEPTED | 1 |
#91 | ACCEPTED | 1 |
#92 | ACCEPTED | 1 |
#93 | ACCEPTED | 1 |
#94 | ACCEPTED | 1 |
#95 | ACCEPTED | 1 |
#96 | ACCEPTED | 1 |
#97 | ACCEPTED | 1 |
#98 | ACCEPTED | 1 |
#99 | ACCEPTED | 1 |
#100 | ACCEPTED | 1 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.01 s | 1 | details |
#2 | ACCEPTED | 0.02 s | 2 | details |
#3 | ACCEPTED | 0.04 s | 3 | details |
#4 | ACCEPTED | 0.03 s | 4 | details |
#5 | ACCEPTED | 0.03 s | 5 | details |
#6 | ACCEPTED | 0.02 s | 6 | details |
#7 | ACCEPTED | 0.03 s | 7 | details |
#8 | ACCEPTED | 0.03 s | 8 | details |
#9 | ACCEPTED | 0.02 s | 9 | details |
#10 | ACCEPTED | 0.03 s | 10 | details |
#11 | ACCEPTED | 0.02 s | 11 | details |
#12 | ACCEPTED | 0.02 s | 12 | details |
#13 | ACCEPTED | 0.03 s | 13 | details |
#14 | ACCEPTED | 0.01 s | 14 | details |
#15 | ACCEPTED | 0.01 s | 15 | details |
#16 | ACCEPTED | 0.02 s | 16 | details |
#17 | ACCEPTED | 0.02 s | 17 | details |
#18 | ACCEPTED | 0.02 s | 18 | details |
#19 | ACCEPTED | 0.03 s | 19 | details |
#20 | ACCEPTED | 0.02 s | 20 | details |
#21 | ACCEPTED | 0.02 s | 21 | details |
#22 | ACCEPTED | 0.02 s | 22 | details |
#23 | ACCEPTED | 0.02 s | 23 | details |
#24 | ACCEPTED | 0.03 s | 24 | details |
#25 | ACCEPTED | 0.02 s | 25 | details |
#26 | ACCEPTED | 0.03 s | 26 | details |
#27 | ACCEPTED | 0.03 s | 27 | details |
#28 | ACCEPTED | 0.03 s | 28 | details |
#29 | ACCEPTED | 0.05 s | 29 | details |
#30 | ACCEPTED | 0.05 s | 30 | details |
#31 | ACCEPTED | 0.04 s | 31 | details |
#32 | ACCEPTED | 0.05 s | 32 | details |
#33 | ACCEPTED | 0.04 s | 33 | details |
#34 | ACCEPTED | 0.03 s | 34 | details |
#35 | ACCEPTED | 0.05 s | 35 | details |
#36 | ACCEPTED | 0.05 s | 36 | details |
#37 | ACCEPTED | 0.03 s | 37 | details |
#38 | ACCEPTED | 0.72 s | 38 | details |
#39 | ACCEPTED | 0.02 s | 39 | details |
#40 | ACCEPTED | 0.11 s | 40 | details |
#41 | ACCEPTED | 0.01 s | 41 | details |
#42 | ACCEPTED | 0.02 s | 42 | details |
#43 | ACCEPTED | 0.74 s | 43 | details |
#44 | ACCEPTED | 0.04 s | 44 | details |
#45 | ACCEPTED | 0.70 s | 45 | details |
#46 | ACCEPTED | 0.69 s | 46 | details |
#47 | ACCEPTED | 0.71 s | 47 | details |
#48 | ACCEPTED | 0.70 s | 48 | details |
#49 | ACCEPTED | 0.74 s | 49 | details |
#50 | ACCEPTED | 0.69 s | 50 | details |
#51 | ACCEPTED | 0.71 s | 51 | details |
#52 | ACCEPTED | 0.70 s | 52 | details |
#53 | ACCEPTED | 0.69 s | 53 | details |
#54 | ACCEPTED | 0.68 s | 54 | details |
#55 | ACCEPTED | 0.69 s | 55 | details |
#56 | ACCEPTED | 0.72 s | 56 | details |
#57 | ACCEPTED | 0.67 s | 57 | details |
#58 | ACCEPTED | 0.68 s | 58 | details |
#59 | ACCEPTED | 0.67 s | 59 | details |
#60 | ACCEPTED | 0.71 s | 60 | details |
#61 | ACCEPTED | 0.72 s | 61 | details |
#62 | ACCEPTED | 0.72 s | 62 | details |
#63 | ACCEPTED | 0.71 s | 63 | details |
#64 | ACCEPTED | 0.67 s | 64 | details |
#65 | ACCEPTED | 0.69 s | 65 | details |
#66 | ACCEPTED | 0.69 s | 66 | details |
#67 | ACCEPTED | 0.70 s | 67 | details |
#68 | ACCEPTED | 0.70 s | 68 | details |
#69 | ACCEPTED | 0.68 s | 69 | details |
#70 | ACCEPTED | 0.43 s | 70 | details |
#71 | ACCEPTED | 0.67 s | 71 | details |
#72 | ACCEPTED | 0.67 s | 72 | details |
#73 | ACCEPTED | 0.68 s | 73 | details |
#74 | ACCEPTED | 0.67 s | 74 | details |
#75 | ACCEPTED | 0.69 s | 75 | details |
#76 | ACCEPTED | 0.68 s | 76 | details |
#77 | ACCEPTED | 0.68 s | 77 | details |
#78 | ACCEPTED | 0.69 s | 78 | details |
#79 | ACCEPTED | 0.66 s | 79 | details |
#80 | ACCEPTED | 0.66 s | 80 | details |
#81 | ACCEPTED | 0.66 s | 81 | details |
#82 | ACCEPTED | 0.68 s | 82 | details |
#83 | ACCEPTED | 0.68 s | 83 | details |
#84 | ACCEPTED | 0.67 s | 84 | details |
#85 | ACCEPTED | 0.67 s | 85 | details |
#86 | ACCEPTED | 0.70 s | 86 | details |
#87 | ACCEPTED | 0.68 s | 87 | details |
#88 | ACCEPTED | 0.69 s | 88 | details |
#89 | ACCEPTED | 0.69 s | 89 | details |
#90 | ACCEPTED | 0.44 s | 90 | details |
#91 | ACCEPTED | 0.69 s | 91 | details |
#92 | ACCEPTED | 0.69 s | 92 | details |
#93 | ACCEPTED | 0.72 s | 93 | details |
#94 | ACCEPTED | 0.68 s | 94 | details |
#95 | ACCEPTED | 0.69 s | 95 | details |
#96 | ACCEPTED | 0.68 s | 96 | details |
#97 | ACCEPTED | 0.71 s | 97 | details |
#98 | ACCEPTED | 0.68 s | 98 | details |
#99 | ACCEPTED | 0.68 s | 99 | details |
#100 | ACCEPTED | 0.71 s | 100 | details |
Code
#include <bits/stdc++.h> #define F first #define S second using namespace std; int ot[2500][2500], rt[2500][2500], st[4][2500]; int d[2500], ps[2500], ns[2500]; vector<pair<int, int>> sk(2501); void c(int n, int m, int *cst) { int hcap = n; for (int i = 0; i < n; ++i) cst[i] = m; for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { if (!i || !rt[i][j]) d[j] = 0; d[j] += rt[i][j]; } sk.clear(); sk.emplace_back(-1, -1); for (int j = 0; j < m; ++j) { while (sk.back().F >= d[j]) sk.pop_back(); ps[j] = sk.back().S; sk.emplace_back(d[j], j); } sk.clear(); sk.emplace_back(-1, m); for (int j = m-1; j >= 0; --j) { while (sk.back().F >= d[j]) sk.pop_back(); ns[j] = sk.back().S; sk.emplace_back(d[j], j); } for (int j = 0; j < m; ++j) { if (!rt[i][j]) continue; if (i < n-1 && rt[i+1][j]) continue; hcap = min(hcap, d[j]); int psi = j, psd = d[j], nsi = j, nsd = d[j]; for (int ah = d[j]-1; ah >= 0; --ah) { while (psd > ah) { psi = ps[psi]; if (psi == -1) psd = -1; else psd = d[psi]; } while (nsd > ah) { nsi = ns[nsi]; if (nsi == m) nsd = -1; else nsd = d[nsi]; } cst[ah] = min(cst[ah], nsi-psi-1); } } } for (int i = hcap; i < n; ++i) cst[i] = 0; } int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; cin >> n >> m; for (int i = 0; i < n; ++i) { cin >> ws; for (int j = 0; j < m; ++j) { char c; cin >> c; ot[i][j] = c == '1'; rt[i][j] = ot[i][j]; } } c(n, m, st[0]); for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { rt[j][i] = ot[i][j]; } } c(m, n, st[1]); for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { rt[n-i-1][j] = ot[i][j]; } } c(n, m, st[2]); for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { rt[m-j-1][i] = ot[i][j]; } } c(m, n, st[3]); long res = 0; for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { if (j+1 > st[0][i]) continue; if (i+1 > st[1][j]) continue; if (j+1 > st[2][i]) continue; if (i+1 > st[3][j]) continue; res = max(res, long(i+1)*(j+1)); } } cout << res << endl; }
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
1 20 00001111101110011110 |
correct output |
---|
3 |
user output |
---|
3 |
Test 2
Group: 2
Verdict: ACCEPTED
input |
---|
20 1 1 1 1 0 ... |
correct output |
---|
2 |
user output |
---|
2 |
Test 3
Group: 3
Verdict: ACCEPTED
input |
---|
2499 1 1 1 1 1 ... |
correct output |
---|
38 |
user output |
---|
38 |
Test 4
Group: 4
Verdict: ACCEPTED
input |
---|
2499 1 1 1 1 1 ... |
correct output |
---|
55 |
user output |
---|
55 |
Test 5
Group: 5
Verdict: ACCEPTED
input |
---|
1 2500 111111111110111111111110111111... |
correct output |
---|
7 |
user output |
---|
7 |
Test 6
Group: 6
Verdict: ACCEPTED
input |
---|
1 1000 111111111111111111111111111111... |
correct output |
---|
33 |
user output |
---|
33 |
Test 7
Group: 7
Verdict: ACCEPTED
input |
---|
5 5 11111 11111 11011 11111 ... |
correct output |
---|
4 |
user output |
---|
4 |
Test 8
Group: 8
Verdict: ACCEPTED
input |
---|
20 20 11111000000000000000 11111000000000000000 11111100000000000000 11111111111000000000 ... |
correct output |
---|
8 |
user output |
---|
8 |
Test 9
Group: 9
Verdict: ACCEPTED
input |
---|
20 20 11111100000000000000 11111100000000000000 11111110000000000000 11111111111110000000 ... |
correct output |
---|
12 |
user output |
---|
12 |
Test 10
Group: 10
Verdict: ACCEPTED
input |
---|
14 13 0000011100000 0000011100000 0000011100000 0000011110000 ... |
correct output |
---|
4 |
user output |
---|
4 |
Test 11
Group: 11
Verdict: ACCEPTED
input |
---|
20 19 1111110000000000000 1111111000000000000 1111111000000000000 1111111000000000000 ... |
correct output |
---|
10 |
user output |
---|
10 |
Test 12
Group: 12
Verdict: ACCEPTED
input |
---|
15 15 110000000000000 110000000000000 110000000000000 111000000000000 ... |
correct output |
---|
2 |
user output |
---|
2 |
Test 13
Group: 13
Verdict: ACCEPTED
input |
---|
15 11 00111000000 00111000000 00111000000 00111000000 ... |
correct output |
---|
3 |
user output |
---|
3 |
Test 14
Group: 14
Verdict: ACCEPTED
input |
---|
16 16 0000111100001111 0000111100001111 0000111100001111 0000111100001111 ... |
correct output |
---|
16 |
user output |
---|
16 |
Test 15
Group: 15
Verdict: ACCEPTED
input |
---|
18 18 111110000000000000 111110000000000000 111110000000000000 111111000000000000 ... |
correct output |
---|
8 |
user output |
---|
8 |
Test 16
Group: 16
Verdict: ACCEPTED
input |
---|
20 20 11111111111111011111 11111111111111011111 11111111111111011111 11111111111111111111 ... |
correct output |
---|
20 |
user output |
---|
20 |
Test 17
Group: 17
Verdict: ACCEPTED
input |
---|
65 70 000000000000000011111000000000... |
correct output |
---|
15 |
user output |
---|
15 |
Test 18
Group: 18
Verdict: ACCEPTED
input |
---|
70 62 111100000000000000000000000000... |
correct output |
---|
6 |
user output |
---|
6 |
Test 19
Group: 19
Verdict: ACCEPTED
input |
---|
94 78 111111111111111100000000000000... |
correct output |
---|
22 |
user output |
---|
22 |
Test 20
Group: 20
Verdict: ACCEPTED
input |
---|
92 84 111111111111111110000000000000... |
correct output |
---|
27 |
user output |
---|
27 |
Test 21
Group: 21
Verdict: ACCEPTED
input |
---|
53 89 000001111000000000000000000000... |
correct output |
---|
6 |
user output |
---|
6 |
Test 22
Group: 22
Verdict: ACCEPTED
input |
---|
76 93 000011111100000000000000000000... |
correct output |
---|
12 |
user output |
---|
12 |
Test 23
Group: 23
Verdict: ACCEPTED
input |
---|
100 100 111111111111111111111111111111... |
correct output |
---|
209 |
user output |
---|
209 |
Test 24
Group: 24
Verdict: ACCEPTED
input |
---|
81 74 111111111111111110000000000000... |
correct output |
---|
30 |
user output |
---|
30 |
Test 25
Group: 25
Verdict: ACCEPTED
input |
---|
100 100 111111111111111111111111111111... |
correct output |
---|
80 |
user output |
---|
80 |
Test 26
Group: 26
Verdict: ACCEPTED
input |
---|
100 100 111111111111111111111111111111... |
correct output |
---|
132 |
user output |
---|
132 |
Test 27
Group: 27
Verdict: ACCEPTED
input |
---|
295 268 111111111111111111111111111111... |
correct output |
---|
3 |
user output |
---|
3 |
Test 28
Group: 28
Verdict: ACCEPTED
input |
---|
290 383 111111110000000000000000000000... |
correct output |
---|
20 |
user output |
---|
20 |
Test 29
Group: 29
Verdict: ACCEPTED
input |
---|
390 320 000000000000000000000000000000... |
correct output |
---|
3038 |
user output |
---|
3038 |
Test 30
Group: 30
Verdict: ACCEPTED
input |
---|
432 434 111111111111111111111111111111... |
correct output |
---|
221 |
user output |
---|
221 |
Test 31
Group: 31
Verdict: ACCEPTED
input |
---|
334 450 111111111111111111111111111111... |
correct output |
---|
391 |
user output |
---|
391 |
Test 32
Group: 32
Verdict: ACCEPTED
input |
---|
407 383 111111111111111111111111111111... |
correct output |
---|
156 |
user output |
---|
156 |
Test 33
Group: 33
Verdict: ACCEPTED
input |
---|
450 450 111111111111111111111111111111... |
correct output |
---|
1235 |
user output |
---|
1235 |
Test 34
Group: 34
Verdict: ACCEPTED
input |
---|
356 231 000000000001111111111110000000... |
correct output |
---|
42 |
user output |
---|
42 |
Test 35
Group: 35
Verdict: ACCEPTED
input |
---|
450 450 111111111111111111111111111111... |
correct output |
---|
192 |
user output |
---|
192 |
Test 36
Group: 36
Verdict: ACCEPTED
input |
---|
450 450 111111111111111111111111111111... |
correct output |
---|
1404 |
user output |
---|
1404 |
Test 37
Group: 37
Verdict: ACCEPTED
input |
---|
20 20 00000000001111111111 00000000001111111111 00000000001111111111 00000000001111111111 ... |
correct output |
---|
14 |
user output |
---|
14 |
Test 38
Group: 38
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
6250000 |
user output |
---|
6250000 |
Test 39
Group: 39
Verdict: ACCEPTED
input |
---|
20 20 00000000001111111111 00000000001111111111 00000000111111111111 00000001111111111111 ... |
correct output |
---|
24 |
user output |
---|
24 |
Test 40
Group: 40
Verdict: ACCEPTED
input |
---|
875 882 111111111111111111111111111111... |
correct output |
---|
69552 |
user output |
---|
69552 |
Test 41
Group: 41
Verdict: ACCEPTED
input |
---|
20 20 00000000111111111111 00000011111111111111 00000011111111111111 00000111111111111111 ... |
correct output |
---|
36 |
user output |
---|
36 |
Test 42
Group: 42
Verdict: ACCEPTED
input |
---|
100 100 000000000000000000000000000000... |
correct output |
---|
651 |
user output |
---|
651 |
Test 43
Group: 43
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
250500 |
user output |
---|
250500 |
Test 44
Group: 44
Verdict: ACCEPTED
input |
---|
450 450 000000000000000000000000000000... |
correct output |
---|
12864 |
user output |
---|
12864 |
Test 45
Group: 45
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
399456 |
user output |
---|
399456 |
Test 46
Group: 46
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111100000... |
correct output |
---|
625 |
user output |
---|
625 |
Test 47
Group: 47
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
395486 |
user output |
---|
395486 |
Test 48
Group: 48
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
3360 |
user output |
---|
3360 |
Test 49
Group: 49
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
28 |
user output |
---|
28 |
Test 50
Group: 50
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
7348 |
user output |
---|
7348 |
Test 51
Group: 51
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
6622 |
user output |
---|
6622 |
Test 52
Group: 52
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
5593 |
user output |
---|
5593 |
Test 53
Group: 53
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
4545 |
user output |
---|
4545 |
Test 54
Group: 54
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
4067 |
user output |
---|
4067 |
Test 55
Group: 55
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
2806 |
user output |
---|
2806 |
Test 56
Group: 56
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
122500 |
user output |
---|
122500 |
Test 57
Group: 57
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
4674 |
user output |
---|
4674 |
Test 58
Group: 58
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
6272 |
user output |
---|
6272 |
Test 59
Group: 59
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
3337 |
user output |
---|
3337 |
Test 60
Group: 60
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
870 |
user output |
---|
870 |
Test 61
Group: 61
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
532 |
user output |
---|
532 |
Test 62
Group: 62
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
114271 |
user output |
---|
114271 |
Test 63
Group: 63
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
1560001 |
user output |
---|
1560001 |
Test 64
Group: 64
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
62500 |
user output |
---|
62500 |
Test 65
Group: 65
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
1400 |
user output |
---|
1400 |
Test 66
Group: 66
Verdict: ACCEPTED
input |
---|
2500 2500 000000111111111111111111111111... |
correct output |
---|
9910 |
user output |
---|
9910 |
Test 67
Group: 67
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
9879 |
user output |
---|
9879 |
Test 68
Group: 68
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
16224 |
user output |
---|
16224 |
Test 69
Group: 69
Verdict: ACCEPTED
input |
---|
2500 2500 000000000000000000000000000000... |
correct output |
---|
6300 |
user output |
---|
6300 |
Test 70
Group: 70
Verdict: ACCEPTED
input |
---|
2000 2000 111111111111111111111111111111... |
correct output |
---|
59760 |
user output |
---|
59760 |
Test 71
Group: 71
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
40480 |
user output |
---|
40480 |
Test 72
Group: 72
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
137159 |
user output |
---|
137159 |
Test 73
Group: 73
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
32110 |
user output |
---|
32110 |
Test 74
Group: 74
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
10914 |
user output |
---|
10914 |
Test 75
Group: 75
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
124074 |
user output |
---|
124074 |
Test 76
Group: 76
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
4617 |
user output |
---|
4617 |
Test 77
Group: 77
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
106981 |
user output |
---|
106981 |
Test 78
Group: 78
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
44980 |
user output |
---|
44980 |
Test 79
Group: 79
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111110000... |
correct output |
---|
1365 |
user output |
---|
1365 |
Test 80
Group: 80
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111110000000000... |
correct output |
---|
602 |
user output |
---|
602 |
Test 81
Group: 81
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
2709 |
user output |
---|
2709 |
Test 82
Group: 82
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
149556 |
user output |
---|
149556 |
Test 83
Group: 83
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
11289 |
user output |
---|
11289 |
Test 84
Group: 84
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
366 |
user output |
---|
366 |
Test 85
Group: 85
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
4814 |
user output |
---|
4814 |
Test 86
Group: 86
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
132 |
user output |
---|
132 |
Test 87
Group: 87
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
589 |
user output |
---|
589 |
Test 88
Group: 88
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
56448 |
user output |
---|
56448 |
Test 89
Group: 89
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
10044 |
user output |
---|
10044 |
Test 90
Group: 90
Verdict: ACCEPTED
input |
---|
2000 2000 111111111111111111111111111111... |
correct output |
---|
6384 |
user output |
---|
6384 |
Test 91
Group: 91
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
15330 |
user output |
---|
15330 |
Test 92
Group: 92
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
47759 |
user output |
---|
47759 |
Test 93
Group: 93
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
624 |
user output |
---|
624 |
Test 94
Group: 94
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
16695 |
user output |
---|
16695 |
Test 95
Group: 95
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
19224 |
user output |
---|
19224 |
Test 96
Group: 96
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
89386 |
user output |
---|
89386 |
Test 97
Group: 97
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
243 |
user output |
---|
243 |
Test 98
Group: 98
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
73840 |
user output |
---|
73840 |
Test 99
Group: 99
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
10764 |
user output |
---|
10764 |
Test 100
Group: 100
Verdict: ACCEPTED
input |
---|
2500 2500 111111111111111111111111111111... |
correct output |
---|
135 |
user output |
---|
135 |