QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#504207#7614. BoxesGuanYunChangWA 102ms3624kbC++171.5kb2024-08-04 10:13:112024-08-04 10:13:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3532kb

input:

4
5
1 2 1 1 8
3
1 1 1
6
1 1 1 4 1 2
3
8 4 2

output:

1
3
3
1

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 102ms
memory: 3620kb

input:

500000
1
137438953472
1
8589934592
1
2048
1
1048576
1
68719476736
1
524288
1
8192
1
536870912
1
16777216
1
549755813888
1
268435456
1
524288
1
8589934592
1
32768
1
32768
1
32
1
131072
1
2
1
524288
1
34359738368
1
8589934592
1
8192
1
68719476736
1
8589934592
1
524288
1
268435456
1
68719476736
1
26214...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 500000 lines

Test #3:

score: -100
Wrong Answer
time: 50ms
memory: 3624kb

input:

1299
360
131072 4294967296 67108864 4294967296 1 16384 16384 16384 268435456 67108864 268435456 2048 4294967296 16384 64 16384 68719476736 4 524288 134217728 131072 131072 134217728 134217728 67108864 64 16384 2147483648 1024 4 64 131072 67108864 131072 134217728 2048 131072 134217728 17179869184 67...

output:

17
14
18
6
30
11
17
113
57
37
6
24
12
11
12
17
219
10
25
12
27
15
24
13
42
17
13
246
17
32
45
14
72
46
99
13
19
4
13
20
23
12
160
10
11
16
10
110
39
23
9
14
39
13
24
14
6
282
20
11
16
12
62
39
16
17
22
22
42
57
13
18
15
10
185
101
37
15
49
7
12
22
16
5
10
90
18
9
18
246
8
48
18
19
23
14
12
45
19
11
...

result:

wrong answer 2nd lines differ - expected: '10', found: '14'