QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#504181#7614. BoxesHuangHanShengWA 132ms3704kbC++171.2kb2024-08-04 09:45:302024-08-04 09:45:30

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 132ms
memory: 3704kb

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: 49ms
memory: 3688kb

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:

1
1
4
3
1
7
12
69
50
25
1
10
8
2
1
1
217
1
1
6
9
18
22
12
31
14
1
120
11
4
1
2
12
11
16
13
1
14
14
13
13
1
160
9
11
10
8
113
36
9
1
1
4
40
89
1
1
35
44
1
1
5
2
2
8
1
1
1
1
53
1
21
10
1
25
75
8
11
19
1
1
15
11
1
11
1
8
3
1
63
1
11
14
4
1
12
8
33
12
1
1
150
47
41
1
1
1
1
7
8
1
3
3
67
9
1
7
6
1
15
31
4...

result:

wrong answer 1st lines differ - expected: '17', found: '1'