QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#135438 | #2419. Jackdaws And Crows | new_dawn_2 | AC ✓ | 479ms | 36484kb | C++14 | 2.9kb | 2023-08-05 15:15:45 | 2023-08-05 15:15:49 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3580kb
input:
10 3 123 10 200 20 -40 105 -3 -70 -80 90 -100
output:
318
result:
ok single line: '318'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
10 4 68 27 60 20 -40 105 -3 -70 -80 90 -100
output:
272
result:
ok single line: '272'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
1 10 11 0
output:
10
result:
ok single line: '10'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
1 11 10 0
output:
10
result:
ok single line: '10'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
4 10 9 1 0 -1 0
output:
18
result:
ok single line: '18'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
6 101 25 1000 0 1000 -1000 0 0
output:
100
result:
ok single line: '100'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3452kb
input:
1 42 1337 1283879
output:
0
result:
ok single line: '0'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
1 43 42 -9916342
output:
0
result:
ok single line: '0'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
8 1 20 -2 -200 100 -300 1 -1 -300 10
output:
23
result:
ok single line: '23'
Test #10:
score: 0
Accepted
time: 5ms
memory: 4692kb
input:
100000 99999 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
99999
result:
ok single line: '99999'
Test #11:
score: 0
Accepted
time: 5ms
memory: 4692kb
input:
100000 1000000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
100000
result:
ok single line: '100000'
Test #12:
score: 0
Accepted
time: 30ms
memory: 9788kb
input:
100000 100000 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
output:
99999
result:
ok single line: '99999'
Test #13:
score: 0
Accepted
time: 177ms
memory: 36408kb
input:
500000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000...
output:
499999000000000
result:
ok single line: '499999000000000'
Test #14:
score: 0
Accepted
time: 479ms
memory: 36168kb
input:
500000 419 1916281 411000191 -794901673 -230036934 -681465524 212845683 769266477 -483709452 -590782122 -23713171 788052743 -41117837 617101592 458780825 -974875659 230677976 -532616483 279193810 -508972875 -494526314 757633411 -45154203 843926384 145620754 -596065079 366128075 923239711 -318915829 ...
output:
418994072609
result:
ok single line: '418994072609'
Test #15:
score: 0
Accepted
time: 472ms
memory: 36356kb
input:
500000 301 1163021 386994295 798786337 193910825 546876174 -205566493 -696575445 -68844574 -617267990 417707444 954784287 -250122905 -813489818 -198193503 989015794 266776342 871139246 187353575 684819599 27647700 -720086819 267623158 603653285 -94160354 916472717 -195059806 -949589466 438586785 869...
output:
290586855464
result:
ok single line: '290586855464'
Test #16:
score: 0
Accepted
time: 461ms
memory: 36484kb
input:
500000 83 329179 -445143138 -771851502 379778760 -709291590 455291265 738077154 327574039 524968022 394914116 868893306 -42569676 -659656604 387064306 -985080322 38854659 586890332 255483609 806663993 -172127326 -499697594 488356318 -670342889 73519149 724637562 115879716 -856257680 -23952157 -81240...
output:
82340164995
result:
ok single line: '82340164995'
Test #17:
score: 0
Accepted
time: 108ms
memory: 24560kb
input:
300000 1 2 -1000000000 599997 599995 599993 599991 599989 599987 599985 599983 599981 599979 599977 599975 599973 599971 599969 599967 599965 599963 599961 599959 599957 599955 599953 599951 599949 599947 599945 599943 599941 599939 599937 599935 599933 599931 599929 599927 599925 599923 599921 5999...
output:
599995
result:
ok single line: '599995'
Test #18:
score: 0
Accepted
time: 96ms
memory: 24500kb
input:
300000 1 2 -1000000000 599997 599995 599993 599991 599989 599987 599985 599983 599981 599979 599977 599975 599973 599971 599969 599967 599965 599963 599961 599959 599957 599955 599953 599951 599949 599947 599945 599943 599941 599939 599937 599935 599933 599931 599929 599927 599925 599923 599921 5999...
output:
599995
result:
ok single line: '599995'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3452kb
input:
4 10 1000 1 0 0 -1
output:
10
result:
ok single line: '10'
Test #20:
score: 0
Accepted
time: 25ms
memory: 7100kb
input:
100000 10000 1 -253702991 207765829 0 0 338711660 0 -319135767 0 39022043 0 0 0 0 0 -248606425 -145872309 0 0 0 0 -123645180 890733162 0 695522205 -863504315 0 0 603716559 -134440445 0 0 931634606 -598822853 -742423356 0 0 -725214003 0 0 -645988524 0 785416894 0 389603433 -896273011 0 -668936518 0 -...
output:
34892
result:
ok single line: '34892'
Test #21:
score: 0
Accepted
time: 468ms
memory: 36176kb
input:
500000 3 4230574 -70336648 -108477467 -524677064 282785 8193759 -54446318 8416917 484656071 -616255 983184604 450760111 -1 -5404444 -8543829 -566 95176 -86350864 382087 56208217 -464855 -6576 0 78 -25440515 -310 -10207078 -99906 -201599 -25097369 -2232 1581 299207380 2339 166207 888902502 -856006 1 ...
output:
2999827104
result:
ok single line: '2999827104'
Test #22:
score: 0
Accepted
time: 448ms
memory: 36004kb
input:
500000 47001 54777 342547 92233942 606 80602411 -2122 836818 37295 -9126311 691 6273 99572 -4307 -5290 -79388557 -923839 -5992676 -387613 -18 -8500 358461277 362125383 -36511394 -4911513 86027398 60892089 865 52806097 -84850083 784 707271 -44200636 -128624 -565119 -6565 -4549124 -8255565 -60019981 -...
output:
10559143194
result:
ok single line: '10559143194'
Test #23:
score: 0
Accepted
time: 449ms
memory: 36124kb
input:
500000 8047 1 -1276648 26236790 110755214 71547152 618026 269155676 -269375 -56234 -400819 -54323 10 -897 -20024 2116 -201897012 -5850037 -438 -706174564 -9460 -8456211 46775 -77797084 370255 -913889600 -2914 -41872913 548196 342 1253750 -846691296 -78186409 -259 66355 767803083 -10 -91 -7 -2506 -85...
output:
251740
result:
ok single line: '251740'
Test #24:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
6 100 33 5 -13 0 0 12 0
output:
99
result:
ok single line: '99'
Test #25:
score: 0
Accepted
time: 1ms
memory: 3488kb
input:
5 100 33 5 -13 0 12 0
output:
66
result:
ok single line: '66'
Test #26:
score: 0
Accepted
time: 181ms
memory: 36452kb
input:
500000 10 80 7 16 23 32 39 48 55 64 71 80 87 96 103 112 119 128 135 144 151 160 167 176 183 192 199 208 215 224 231 240 247 256 263 272 279 288 295 304 311 320 327 336 343 352 359 368 375 384 391 400 407 416 423 432 439 448 455 464 471 480 487 496 503 512 519 528 535 544 551 560 567 576 583 592 599 ...
output:
39999910
result:
ok single line: '39999910'
Test #27:
score: 0
Accepted
time: 149ms
memory: 36460kb
input:
500000 10 80 7 16 23 32 39 48 55 64 71 80 87 96 103 112 119 128 135 144 151 160 167 176 183 192 199 208 215 224 231 240 247 256 263 272 279 288 295 304 311 320 327 336 343 352 359 368 375 384 391 400 407 416 423 432 439 448 455 464 471 480 487 496 503 512 519 528 535 544 551 560 567 576 583 592 599 ...
output:
39999910
result:
ok single line: '39999910'
Test #28:
score: 0
Accepted
time: 170ms
memory: 36376kb
input:
500000 10 80 7 16 23 32 39 48 55 64 71 80 87 96 103 112 119 128 135 144 151 160 167 176 183 192 199 208 215 224 231 240 247 256 263 272 279 288 295 304 311 320 327 336 343 352 359 368 375 384 391 400 407 416 423 432 439 448 455 464 471 480 487 496 503 512 519 528 535 544 551 560 567 576 583 592 599 ...
output:
39999910
result:
ok single line: '39999910'
Test #29:
score: 0
Accepted
time: 165ms
memory: 36208kb
input:
500000 265798528 367225408 1669 3355 6793 9658 13267 16338 19409 23219 23279 23446 23744 23986 30609 34127 35398 44895 45542 47030 50001 51693 53074 55491 56017 56513 56713 59383 60871 63419 63806 67446 68209 68375 69933 71387 72133 73391 74048 76104 76397 76520 77546 80748 81685 86593 88656 89736 9...
output:
183612336774592
result:
ok single line: '183612336774592'
Test #30:
score: 0
Accepted
time: 186ms
memory: 36440kb
input:
500000 92788436 166205692 999998643 999997354 999994054 999993615 999993131 999990917 999988994 999981606 999980851 999976890 999976268 999975251 999973227 999969106 999968308 999968297 999968260 999967161 999964467 999964168 999961813 999958514 999955328 999953495 999951328 999950533 999950282 9999...
output:
83102679794308
result:
ok single line: '83102679794308'
Test #31:
score: 0
Accepted
time: 229ms
memory: 36400kb
input:
500000 844939505 988569278 7275 7377 9976 13600 17611 26525 27512 33830 39429 50517 53683 55885 58789 62809 63914 64106 70286 72118 74231 89116 92437 93956 99535 102150 107399 107434 110086 114762 122945 123158 126895 134459 135567 137431 138314 140416 147014 147755 148299 149067 152562 155366 15729...
output:
494283650430722
result:
ok single line: '494283650430722'
Test #32:
score: 0
Accepted
time: 240ms
memory: 36264kb
input:
500000 987391498 570728959 999999310 999996051 999986012 999980863 999980774 999976068 999969795 999968931 999965061 999952493 999950273 999947528 999944915 999944838 999940955 999927000 999924526 999921008 999914089 999905761 999904694 999900515 999898582 999892026 999891304 999891288 999889979 999...
output:
285363908771041
result:
ok single line: '285363908771041'
Test #33:
score: 0
Accepted
time: 174ms
memory: 36188kb
input:
500000 216904394 876356778 502 -886 -7110 -7485 -8463 12323 -14875 16231 -17419 -17630 -17800 23533 -24702 -25644 -28484 -32966 36462 37067 38352 -40035 -41672 42456 -43652 -44710 48724 -52808 60422 -66478 68444 68794 70962 -73813 -78822 -84169 86510 88005 89512 89719 90477 91109 94855 95456 97995 1...
output:
219490565904324
result:
ok single line: '219490565904324'
Test #34:
score: 0
Accepted
time: 189ms
memory: 36276kb
input:
500000 195098886 379731051 -999999511 -999998419 -999998364 999993290 999992274 999990873 999990727 -999988688 -999986494 -999983192 999980442 -999979417 -999978298 999975761 -999974384 999966119 999965689 -999964469 -999963186 -999957377 -999955683 999952487 -999951154 -999949365 -999947927 -999946...
output:
94934661405255
result:
ok single line: '94934661405255'
Test #35:
score: 0
Accepted
time: 237ms
memory: 36316kb
input:
500000 116473253 847777387 -999997523 -999997090 -999989203 999986433 -999982937 -999982412 -999974409 999970609 999968736 999966051 999960197 -999959964 999957044 999939221 999935741 -999933862 -999931596 -999929770 -999921251 999919097 -999918805 999915373 -999913784 -999904493 -999902202 -9999007...
output:
211983344509802
result:
ok single line: '211983344509802'
Test #36:
score: 0
Accepted
time: 231ms
memory: 36180kb
input:
500000 82541956 664290632 -3086 -13559 15777 -17996 19809 -19985 -20887 22714 -23710 26520 28666 -28855 28883 33006 37921 -39797 -41106 -43278 46230 -47756 -53140 53416 -54289 55714 -55979 60336 60705 -61253 64214 73725 76224 83081 -94083 96797 98828 -102449 113178 113358 113754 115133 -119429 14207...
output:
165967700080144
result:
ok single line: '165967700080144'