QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304354#8006. Dinosaur Bones Diggingucup-team216#TL 2436ms35412kbC++203.3kb2024-01-13 18:19:332024-01-13 18:19:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
3 5 2 7 4 6
2
1 5
3 6

output:

9

result:

ok answer is '9'

Test #2:

score: 0
Accepted
time: 2ms
memory: 18008kb

input:

1
100
1
1 1

output:

0

result:

ok answer is '0'

Test #3:

score: 0
Accepted
time: 2ms
memory: 18024kb

input:

20
451541695 690066663 673479208 448269517 560111835 982439295 929007403 955125568 735150915 829197546 256554877 435297385 348361716 763574893 202875223 881879899 590527232 256896900 31383620 400212120
5
4 8
4 17
11 13
19 20
17 18

output:

4480894680

result:

ok answer is '4480894680'

Test #4:

score: 0
Accepted
time: 2ms
memory: 18036kb

input:

100
310791482 148245051 114541081 918781914 681485137 656214017 226939378 970492592 431199764 162399115 490488808 3059986 487892489 611730708 952388887 418021477 917893766 587279310 363995315 342188612 72531000 156997725 896382592 359419647 144773021 872005978 496280920 65840663 56171913 273988049 6...

output:

23457460782

result:

ok answer is '23457460782'

Test #5:

score: 0
Accepted
time: 11ms
memory: 18028kb

input:

1000
653152089 378327983 557774751 390757038 4471201 856292034 205122039 30258841 396640873 159207453 703775065 793745674 681241216 876218560 582247644 205933914 957242345 112988670 939157518 525653622 262606938 993539583 451620719 700727137 142726078 430071359 426031860 471766448 94089907 167433741...

output:

242077104830

result:

ok answer is '242077104830'

Test #6:

score: 0
Accepted
time: 211ms
memory: 18492kb

input:

10000
760845880 236665988 765352292 817854026 789863420 399953246 270535243 932350041 48814223 670950468 456660682 416165008 999681497 666880584 56581573 134567049 403285848 144814129 973325555 23519957 518449311 738687225 345716065 2309498 477743569 555951695 911860717 920761968 569179690 349857557...

output:

2452630249040

result:

ok answer is '2452630249040'

Test #7:

score: 0
Accepted
time: 1504ms
memory: 32040kb

input:

75000
64097076 228795807 236402963 795983877 911904460 793466611 195874572 123239434 599032119 741932 916254858 335612220 445268867 659313703 848780671 12116264 105543333 438293575 879273474 875134498 618135541 308227823 220867277 683811264 720576432 874505737 896095678 437505375 945318773 658945922...

output:

18740230889380

result:

ok answer is '18740230889380'

Test #8:

score: 0
Accepted
time: 2100ms
memory: 35412kb

input:

100000
237252794 382693085 295147362 674980341 2958154 807156999 970437955 781426294 772360469 332498984 366981282 102374212 992836938 434644540 742598545 821844749 65037055 208304069 38844999 893543237 392739243 968841288 483750814 102524579 991416234 875749582 237552019 633704354 706506941 8051497...

output:

24967271468601

result:

ok answer is '24967271468601'

Test #9:

score: 0
Accepted
time: 2436ms
memory: 35368kb

input:

100000
38413036 456923902 821971466 586909482 636298728 158178471 84422915 632002470 34405999 882453211 922025994 294603996 207311349 526030511 417456448 362917277 456078308 435018316 47342069 47738636 642863127 189926256 40263985 58857249 119358305 864464366 83617839 485428518 305918980 942395945 6...

output:

24903646283538

result:

ok answer is '24903646283538'

Test #10:

score: -100
Time Limit Exceeded

input:

193531
700185685 653403475 398038439 272114589 644859446 234924539 412364196 347296552 436428000 711722981 547258844 794359236 961133698 639407426 480555752 954373403 653187777 339413210 11632662 145811119 988611894 708168836 83399147 696410193 214277102 445328303 392328860 390290603 283682280 54718...

output:


result: