QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#157870#7109. Traveling on the Axisucup-team1506#TL 1ms3564kbC++14307b2023-09-02 15:56:562023-09-02 15:56:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3564kb

input:

3
101
011
11010

output:

12
15
43

result:

ok 3 lines

Test #2:

score: -100
Time Limit Exceeded

input:

6107
1010101
010110100110101
1010
1010101010010101010
101011
0101101011010101010
0101101011
11011010101
010
1011010
10110101010101010100
010101010110101
10101010101011
0101010101010101011
00101010011000
1010101010010110110
01010101001010101010
101010101010101
100100101010101010
01
011
0101010100101
...

output:

96
749
23
1414
66
1443
255
326
13
98
1647
747
610
1431
604
1419
1643
736
1204
6
15
501
43
1642
1414
140
749
497
495
23
1639
610
396
24
407
13
1041
1236
96
503
95
69
507
884
742
891
6
1
321
93
729
603
192
728
39
94
198
70
499
1
99
494
248
193
191
1
191
1041
140
728
193
1
69
1427
41
319
1041
13
189
18...

result: