QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#815575#9879. ReTravelucup-team3188#TL 1721ms18840kbC++204.1kb2024-12-15 15:42:292024-12-15 15:42:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3 3
1 2

output:

6

result:

ok "6"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

3
2 2
3 3
1 3

output:

7

result:

ok "7"

Test #3:

score: 0
Accepted
time: 759ms
memory: 14620kb

input:

500
906691059 413653999
813847339 955892128
451585301 43469773
278009742 548977048
521760889 434794718
985946604 841597326
891047768 325679554
511742081 384452587
626401695 957413342
975078788 234551094
541903389 149544006
302621084 150050891
811538590 101823753
663968655 858351976
268979133 9768326...

output:

202616034783

result:

ok "202616034783"

Test #4:

score: 0
Accepted
time: 1721ms
memory: 18840kb

input:

500
197508820 312522778
399927947 450741116
712100766 49666651
924464447 141984971
645542410 22064989
422840790 83667167
753948784 78609879
141755692 451220354
321463979 591392492
447481176 795512574
994710563 152775719
634663583 453321713
320005247 683937079
380710321 90790987
266350791 477612342
6...

output:

198505565669

result:

ok "198505565669"

Test #5:

score: 0
Accepted
time: 1449ms
memory: 17428kb

input:

500
818756950 269034664
217741655 818569666
427240219 415135468
467734756 832629580
682226751 671778504
722710328 417966778
748504506 945050243
883205074 41250195
625657784 499626017
380730684 891047161
610732155 136164940
606036300 762880211
298875797 352311697
882621358 26093300
427448788 50865827...

output:

210934262379

result:

ok "210934262379"

Test #6:

score: 0
Accepted
time: 167ms
memory: 9196kb

input:

500
473422318 304428671
386522503 701468622
522037604 643651374
998091896 159781664
892902038 560901457
734975652 94013094
201441249 322018495
555988774 677427415
722803152 131808176
63347473 166545337
368090399 39389900
359102593 934193703
667637614 864538656
172179961 822215951
966405851 503156245...

output:

206220924770

result:

ok "206220924770"

Test #7:

score: -100
Time Limit Exceeded

input:

500
971461463 668230753
501167178 550197148
370679224 249425559
834516085 539207944
40365638 778681200
412184018 839292457
392974263 367503042
850939294 550101977
7403492 268187998
616718674 82621189
510342672 119133531
395126668 467303258
823114483 664648677
261879724 585992895
26080935 556930789
5...

output:


result: