QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#125249#5530. No Zero-Sum SubsegmentfuckerTL 49ms34624kbC++142.9kb2023-07-16 10:51:232023-07-16 10:51:26

詳細信息

Test #1:

score: 100
Accepted
time: 35ms
memory: 34624kb

input:

5
69 0 0 0
1 1 1 1
0 0 3 3
6 1 0 6
10000 10000 1000000 1000000

output:

1
0
20
2
480402900

result:

ok 5 number(s): "1 0 20 2 480402900"

Test #2:

score: 0
Accepted
time: 49ms
memory: 34612kb

input:

83520
13 1 6 8
13 9 3 14
1 16 13 0
8 12 7 16
10 5 9 15
16 16 15 1
5 11 0 4
12 4 11 15
16 7 1 10
2 6 3 3
15 14 12 0
0 8 12 12
3 0 6 7
16 2 16 15
16 16 16 13
8 13 2 14
7 9 7 0
9 8 4 6
13 16 4 11
11 1 12 4
7 9 4 16
12 13 0 4
5 0 9 1
11 11 0 3
1 11 14 3
3 3 7 3
8 5 4 4
6 7 12 14
2 11 5 6
15 4 9 14
15 11...

output:

0
0
0
0
0
0
52
0
26784
0
0
0
392
0
0
0
0
0
0
0
0
478686
0
136136
0
0
0
0
0
0
0
1680
0
821
0
24024
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8994258
0
0
0
0
0
293930
0
0
156637
166
0
0
0
0
0
0
0
0
0
54
0
0
1248
126
0
0
0
344
0
9867
10880
544
0
0
0
0
0
216580
0
0
4620
0
0
0
0
0
57915
0
0
0
10
0
72442440
0
1085473...

result:

ok 83520 numbers

Test #3:

score: -100
Time Limit Exceeded

input:

100000
27617 154585 61225 74297
699481 42306 265668 389057
94916 26621 153453 31500
425780 600614 439472 658406
180214 69209 369042 30297
67467 59798 156985 18873
501987 67164 156713 837634
534254 516732 831502 270708
671302 293648 947387 500010
32836 656676 169292 276528
98106 103776 160535 69726
3...

output:


result: