QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#304566#8006. Dinosaur Bones Diggingucup-team646#TL 2810ms38840kbC++237.7kb2024-01-13 21:11:202024-01-13 21:11:21

详细

Test #1:

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

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: 0ms
memory: 3528kb

input:

1
100
1
1 1

output:

0

result:

ok answer is '0'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3540kb

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: 1ms
memory: 3596kb

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: 7ms
memory: 3624kb

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: 107ms
memory: 5008kb

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: 867ms
memory: 21804kb

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: 1144ms
memory: 24984kb

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: 1180ms
memory: 17968kb

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: 0
Accepted
time: 2714ms
memory: 31332kb

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:

48119967363993

result:

ok answer is '48119967363993'

Test #11:

score: 0
Accepted
time: 2810ms
memory: 31372kb

input:

200000
946595722 271213712 915506504 843189857 889214784 150802916 47950504 875914997 813247785 35791160 36350165 271403304 553268056 642299504 824405101 760788345 582500756 810890307 844167937 517445752 954178007 539167422 956565909 640348492 772207312 776135104 355220770 409647150 406776930 754956...

output:

49398629253632

result:

ok answer is '49398629253632'

Test #12:

score: 0
Accepted
time: 2653ms
memory: 32148kb

input:

200000
474676011 939912865 348389405 320057032 401730779 772694363 522559450 449397650 84577374 772638546 454036490 511546084 450152378 361510375 736170896 868337032 233134669 593272303 521368545 910823164 807700292 524313138 209216902 471719411 93601829 139239405 320779934 441796820 979537222 16444...

output:

49741688559332

result:

ok answer is '49741688559332'

Test #13:

score: 0
Accepted
time: 2009ms
memory: 32740kb

input:

200000
109397543 143192033 948668698 815492316 724901105 620108314 698967424 360842287 755198103 180096873 94781007 498090054 977844902 23263014 766839886 91213121 401300673 360200922 31701400 481563828 71448349 278872261 492714526 983119401 499513604 154303065 208383011 942154652 116109138 50732665...

output:

49786042407145

result:

ok answer is '49786042407145'

Test #14:

score: 0
Accepted
time: 2181ms
memory: 38840kb

input:

200000
261992073 430909777 926146925 252251819 677218593 568716743 908238045 661028536 139554984 409946901 500485900 106878666 866267660 873908781 889662294 441992527 580144564 430178452 766191560 763853446 251057656 399523045 657208230 289791746 758935460 495002956 936637415 295647787 117309049 752...

output:

49900955205738

result:

ok answer is '49900955205738'

Test #15:

score: -100
Time Limit Exceeded

input:

500000
543196303 520001257 135913319 141681743 72855073 102021396 17954772 995707282 533540003 144014914 804630833 49605709 207753044 457005411 880119304 425402060 566315173 703211964 652934484 672802538 674426047 85342051 819455751 579118746 150110202 364244420 947318917 16739938 751932263 60777782...

output:


result: