QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#504024#2042. The Balancexiaowuc1100 ✓375ms3628kbC++172.4kb2024-08-04 04:05:312024-08-04 04:05:32

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 375ms
memory: 3628kb

input:

1 2 50000
9999 10000 1
58 14 5762
1620 5418 3240
3027 9259 26491
3349 4530 6564
3759 479 1355
6259 6201 15544
1141 4904 45837
1137 7358 3311
6656 907 26450
7114 3129 558
1 4733 35498
3491 151 2265
1147 3389 27770
360 5506 47160
3020 4061 7176
7268 510 23100
5416 922 1156
382 4803 2284
1637 1600 1352...

output:

0 25000
1 1
95 18
2 0
2059 676
1686 1245
12 97
268 268
871 212
1149 178
422 3126
1191 2708
2367 7
0 15
429 137
131 0
707 524
45 596
149 874
2068 164
629 652
25 860
540 248
420 1782
325 34
10 0
291 1395
99 98
272 680
2229 354
167 1633
785 59
211 27
625 170
1585 999
1305 1555
638 15
461 827
2288 780
4...

result:

ok 100 lines