QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44571#4622. Mario PartyDianasDog#AC ✓3694ms32564kbC++142.1kb2022-08-19 10:48:062022-08-19 10:48:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3694ms
memory: 32564kb

input:

4
500000 500000
2 -1 2 -1 1 -1 -4 -2 0 -3 4 1 -3 3 5 1 -3 -2 0 3 -2 0 -1 0 0 -3 -2 0 0 1 -2 -3 -4 2 5 0 -1 -2 2 2 -2 -1 2 0 0 -2 3 -2 -4 -3 -3 -1 0 2 1 0 2 -1 -3 0 -2 3 2 -2 1 4 -1 -1 -2 0 2 -2 1 -4 -5 -1 -2 -3 -2 1 4 2 -3 0 1 -1 2 2 0 5 -3 0 2 -1 5 -3 5 -4 -4 0 2 2 1 -1 -6 0 2 -3 2 3 0 0 -2 3 4 2 1...

output:

1363
427
212
818
736
132
561
623
81
800
12
971
218
28
278
737
581
363
25
231
216
642
684
283
1033
982
469
106
156
197
992
384
230
112
226
38
31
561
637
43
623
246
397
1640
1252
1354
4
1338
168
266
364
68
10
435
1391
229
106
0
1114
1416
201
416
206
113
474
190
612
206
109
670
34
0
804
604
376
164
251...

result:

ok 2000000 lines