QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#218061 | #7084. Fighting Against Monsters | KLPP# | AC ✓ | 821ms | 38188kb | C++20 | 2.6kb | 2023-10-17 17:54:09 | 2023-10-17 17:54:10 |
Judging History
answer
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long int lld;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define trav(a,v) for(auto a:v)
pair<lld,lld> mon[3];
const int MX=105;
const int MX2=205;
lld DP[MX][MX2][MX2];
const lld INF=1e18;
void solve(){
rep(i,0,3)cin>>mon[i].first;
rep(i,0,3)cin>>mon[i].second;
sort(mon,mon+3);
rep(i,0,MX){
rep(j,0,MX2){
rep(k,0,MX2)DP[i][j][k]=INF;
}
}
DP[0][0][0]=0;
rep(i,0,MX-1){
rep(j,0,MX2){
rep(k,0,MX2){
lld atk=0;
if(j<mon[0].first)atk+=mon[0].second;
if(k<mon[1].first)atk+=mon[1].second;
if(mon[2].first>(i*(i+1))/2-j-k)atk+=mon[2].second;
if(j<mon[0].first)DP[i+1][j+i+1][k]=min(DP[i+1][j+i+1][k],DP[i][j][k]+atk);
if(k<mon[1].first)DP[i+1][j][k+i+1]=min(DP[i+1][j][k+i+1],DP[i][j][k]+atk);
DP[i+1][j][k]=min(DP[i+1][j][k],DP[i][j][k]+atk);
}
}
}
//~ rep(j,0,10){
//~ rep(k,0,10){
//~ cout<<DP[3][j][k]<<" ";
//~ }cout<<"\n";
//~ }
lld ans=INF*2;
rep(j,0,MX2){
rep(k,0,MX2){
lld rem=(MX*(MX-1))/2-j-k;
rem=mon[2].first-rem;
lld lo=MX-2;
lld hi=1e9;
hi*=3;
hi/=2;
while(hi-lo>1){
lld mid=(hi+lo)/2;
if((mid*(mid+1))/2-(MX*(MX-1))/2>=rem)hi=mid;
else lo=mid;
}
if(j<mon[0].first && k<mon[1].first){
ans=min(ans,DP[MX-1][j][k]+(hi-MX+1)*(mon[2].second+mon[1].second+mon[0].second)+mon[0].second+mon[1].second+min(mon[0].second,mon[1].second));
}else{
if(j<mon[0].first){
ans=min(ans,DP[MX-1][j][k]+(hi-MX+1)*(mon[2].second+mon[0].second)+mon[0].second);
}else{
if(k<mon[1].first){
ans=min(ans,DP[MX-1][j][k]+(hi-MX+1)*(mon[2].second+mon[1].second)+mon[1].second);
}else{
ans=min(ans,DP[MX-1][j][k]+(hi-MX+1)*mon[2].second);
}
}
}
}
}
cout<<ans<<"\n";
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int tt=1;
cin>>tt;
while(tt--){
solve();
}
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 25ms
memory: 38180kb
input:
2 1 10 100 3 2 1 3 2 1 1 10 100
output:
28 123
result:
ok 2 tokens
Test #2:
score: 0
Accepted
time: 332ms
memory: 38068kb
input:
20 100 100 4465 1 1 1000000000 100 100 4560 1 1 1000000000 100 100 4656 1 1 1000000000 100 100 4753 1 1 1000000000 100 100 4851 1 1 1000000000 100 100 4950 1 1 1000000000 100 100 5050 1 1 1000000000 100 100 5151 1 1 1000000000 100 100 5253 1 1 1000000000 100 100 4372 1 1 1000000000 100 100 4466 1 1 ...
output:
94000000194 95000000196 96000000198 97000000199 98000000201 99000000201 100000000203 101000000205 102000000207 94000000191 95000000193 96000000195 97000000197 98000000199 99000000201 100000000203 101000000116 102000000117 103000000118 1414213596000000000
result:
ok 20 tokens
Test #3:
score: 0
Accepted
time: 711ms
memory: 38148kb
input:
50 73 45 93 6 18 14 90 48 87 17 19 11 72 25 30 18 10 4 35 7 92 2 16 8 65 28 41 7 3 14 61 60 11 8 4 10 87 22 67 17 2 12 7 91 99 15 7 6 47 42 77 3 7 14 77 39 79 18 18 17 49 47 19 13 6 9 55 67 88 13 9 1 22 13 40 13 3 7 76 60 36 6 20 14 26 84 14 7 9 18 7 12 71 7 16 4 5 45 94 16 13 14 42 63 30 12 17 14 4...
output:
526 710 386 208 277 210 475 278 327 772 300 294 199 506 297 174 416 528 178 245 214 360 319 385 399 196 347 382 266 394 482 330 319 280 458 354 400 217 162 345 305 435 187 438 105 501 398 394 353 417
result:
ok 50 tokens
Test #4:
score: 0
Accepted
time: 735ms
memory: 38060kb
input:
50 26 2 96 91 76 98 33 39 43 47 28 41 21 3 98 35 23 18 5 80 79 33 77 51 43 9 38 91 51 86 44 97 3 92 97 17 3 74 18 90 97 50 30 33 58 62 19 85 50 62 100 94 35 75 57 34 50 49 51 59 30 74 51 84 50 66 3 39 79 89 5 80 72 52 86 20 17 40 44 75 89 37 89 16 8 64 58 55 18 41 69 66 13 46 63 9 86 10 98 8 93 55 4...
output:
2357 1288 579 2018 2247 2603 1838 1905 2950 2008 2430 1298 1209 1943 959 1582 1357 1722 3220 816 1297 2376 3163 2615 2308 1932 1400 1230 1236 3203 1067 2343 614 1788 828 431 1608 1333 2335 1888 1129 3518 1789 2285 3526 1486 732 2060 2234 2288
result:
ok 50 tokens
Test #5:
score: 0
Accepted
time: 717ms
memory: 38180kb
input:
50 18 8 95 261 49 529 19 46 310 527 383 34 36 67 230 292 308 162 62 100 825 45 426 280 16 70 519 347 445 766 87 29 521 721 377 56 78 85 183 421 89 631 86 49 315 184 65 657 100 49 703 515 327 27 89 26 501 212 133 18 70 9 365 594 33 438 9 72 636 885 201 840 27 79 907 665 521 613 3 46 22 772 534 819 31...
output:
10285 8293 10860 19184 34677 15847 21879 22738 13132 4741 20697 38073 40055 13685 39150 7012 17197 29411 25979 32118 31560 27567 28218 45981 38914 37496 15462 9761 46112 18541 26179 11860 8434 17179 46286 60268 19572 12511 14528 23828 9768 42293 33445 28326 28345 20691 25402 24364 16772 16565
result:
ok 50 tokens
Test #6:
score: 0
Accepted
time: 799ms
memory: 38064kb
input:
50 93 90 4539 511139 238332 760746156 97 100 2456 495759 394736 519245032 98 91 1737 809205 911067 738766103 97 99 2487 668489 797096 372632764 91 95 3854 30063 976202 889446286 91 98 2902 769350 713451 150784835 100 93 2251 639160 440344 339520928 100 94 3462 620800 439019 582939327 100 95 3241 171...
output:
72343072368 36411166857 43692034807 26563116853 78360860816 11575250039 22822586768 48473866975 71162579635 50170878645 53880075282 65710925876 51177968480 51901380597 54555271250 21286348097 47182773287 43922003975 17415043775 10372341050 17810961884 37005627392 14745177541 50674422627 42984408538 ...
result:
ok 50 tokens
Test #7:
score: 0
Accepted
time: 804ms
memory: 38124kb
input:
50 100 99 2818 965889 780281 894677581 92 92 787 667188 928910 602008673 96 92 1899 317807 642698 576150935 95 92 2973 467785 208817 4510394 98 95 1907 599913 926794 502331734 98 93 3368 839455 173081 786576474 94 91 465 972614 42075 576685038 95 91 3866 792665 469826 575751825 95 92 3464 39506 2928...
output:
67235088057 24148717412 35782505399 366837639 31241949875 64583484437 17334162102 50778992125 39180233438 78630251321 28932763080 22241459098 28660364324 38003852463 46497476216 55677525286 30632116556 9821447753 56128416040 63357103239 45439792886 26904283861 68756317446 11449051154 9430152426 4569...
result:
ok 50 tokens
Test #8:
score: 0
Accepted
time: 731ms
memory: 38180kb
input:
50 52 76 2010 36 4 54562076 68 22 1712 86 82 951398328 60 47 2039 53 21 511939863 73 57 2464 26 72 633538132 52 39 5036 7 35 62947188 80 29 105 47 97 361006419 12 74 3521 13 41 412324817 80 99 166 30 61 498527288 66 12 666 51 28 364247025 19 73 22 11 54 529370473 65 68 1635 64 25 324641085 10 16 714...
output:
3437413356 56132507086 32764156063 44347676224 6294723049 5054092405 34635288178 8973493367 13112895925 3705594220 18504547032 37499764703 84062776680 65470327957 65448950349 40721354136 23023309964 28906418289 66054039752 73907354699 17031780488 55478920566 65671772967 35923492049 40811469715 24583...
result:
ok 50 tokens
Test #9:
score: 0
Accepted
time: 728ms
memory: 38184kb
input:
50 99 15 395 701855054 419754207 994152560 6 8 4782 108043563 194321530 906551292 17 87 37 382389838 294062646 941756412 75 43 29 195834413 391511208 397645274 23 60 4754 838895130 429665852 508543581 7 100 1178 309697679 682398562 305564091 21 9 2046 414270140 471619829 863747043 46 98 2240 9372759...
output:
44439478765 90137764955 16710968130 11208481709 61295192924 27058537787 60480451188 43264763084 16135340631 45374814460 47139594989 54621146401 15219265108 53202924886 71760992295 30901267554 90389130268 71328394069 54569998342 38303638916 90189356572 22220244794 15556057640 27488688316 56991134334 ...
result:
ok 50 tokens
Test #10:
score: 0
Accepted
time: 716ms
memory: 38136kb
input:
50 9 82 5937 199 939 334660103 44 65 9365 979 498 353924649 39 17 8603 843 230 88431669 12 4 5321 536 555 110051654 81 16 3699 337 307 396701505 8 38 5 445 99 805923112 32 45 1572 414 213 451426206 50 87 1591 209 311 573575094 70 43 2737 210 396 419567105 63 43 8099 461 545 998651863 56 19 2848 522 ...
output:
36478055313 48487754448 11584586586 11335325243 34116360591 2417772551 25279903488 32120235526 31048011430 126828915830 69933553401 31556512384 75016587799 6276125348 30751952006 76853113017 26180392479 19364900044 5959597619 45563209423 19886229060 125553129914 40870921645 35733730275 1958448552 95...
result:
ok 50 tokens
Test #11:
score: 0
Accepted
time: 735ms
memory: 38116kb
input:
50 84 99 427 506 538 433265318 39 92 71572 151 375 43053119 31 17 89600 804 627 192416761 57 62 22465 493 41 566351886 86 85 37446 193 553 660398137 14 22 29013 180 874 159824369 40 27 77382 589 1 741020649 67 15 48483 653 886 524167365 72 90 21534 816 303 990321438 37 30 83122 87 743 424091833 41 7...
output:
12564729148 16274222466 81392301705 120066613988 180949100201 38517680487 291221347130 163016258681 205986874350 173029474852 64064560937 140092162300 275217767760 154406657829 160646688114 232848646961 14062193180 293746981126 69102438369 87300689580 183407055215 116732700142 341488470359 281278661...
result:
ok 50 tokens
Test #12:
score: 0
Accepted
time: 737ms
memory: 38140kb
input:
50 90 40 549435 197 3078 865030940 8 15 413857 7902 2890 9197435 45 20 357299 9832 5794 918147931 92 39 929059 1228 8370 761065927 87 6 361998 8346 7597 292920658 5 23 652553 6771 1605 385566726 89 63 219117 215 5184 258823568 29 7 285926 9263 252 829098921 93 72 966712 587 406 566716615 98 2 144211...
output:
906552455974 8369717688 775835144611 1037332953479 249275619593 440317232640 171341262695 626798859388 787737476519 16626606106 61138885270 320173772034 1240981663575 833818371808 819526574092 393797515920 248092079734 1326914451580 398205908986 863387621224 1124487067188 994089149090 40615173110 16...
result:
ok 50 tokens
Test #13:
score: 0
Accepted
time: 732ms
memory: 38180kb
input:
50 66 30 977550411 3678 6422 452322316 2 10 537580217 6145 987 424110304 84 37 192661775 5601 7960 808368244 88 65 108142963 378 8546 778688160 42 13 314245852 9842 1857 253737866 36 63 971980314 3668 9662 897808979 62 25 110601001 3663 5806 585526275 60 34 196175543 3023 2079 117518513 27 53 914903...
output:
20000335949440 13906576885385 15868268790976 11452166869552 6361208407768 39584398041744 8708532376336 2327806764458 10501624126902 29543391606773 4858329296180 15385379643677 18376501747519 27902783143524 6121564689273 8651347980879 18047421473469 30151759876184 21379851353048 36488121497488 299660...
result:
ok 50 tokens
Test #14:
score: 0
Accepted
time: 719ms
memory: 38076kb
input:
50 39 25 953543621 439310194 269016236 415720245 15 10 263180881 726148157 122085698 394507734 10 48 750100406 372401595 470708526 968072331 91 82 287798397 631344090 338022068 578340340 23 39 489826737 53030412 48000363 50282789 89 8 172235545 311883234 80270397 278193160 80 13 890793143 854524137 ...
output:
18161218624936 9055676281833 37502044924458 13890171329742 1574700229788 5167952496464 40310341281592 3580823828489 29391038944150 1167623229420 15977647641038 14768190391442 14095408380909 2344937020017 16770864731390 38307556506352 12786062465458 8641978412416 16662744456319 2749024605805 16690384...
result:
ok 50 tokens
Test #15:
score: 0
Accepted
time: 753ms
memory: 38184kb
input:
50 18 98 321777290472243167 302408639 952724496 888009947 51 80 486978669011645919 568805240 570370772 572801248 58 24 246225941557958256 38304971 62935317 589429991 9 96 609624977818029399 996866809 27258115 411784163 67 5 890847446092537939 302357035 39260412 516037378 96 49 170314155941704052 486...
output:
712378056629106813 565293424539360464 413632002001569402 454690644144793606 688807440542402110 215845383602068220 426678751587802120 892442630950756617 429401567091992776 393674864827029510 41581416730780446 670798191708629187 768605803031952538 377091258101168234 205457252987030394 3447649755935198...
result:
ok 50 tokens
Test #16:
score: 0
Accepted
time: 821ms
memory: 38136kb
input:
50 100 100 987135981480726582 356636063 509935454 59105199 100 100 864209671705850890 84726063 220033578 668546158 100 100 646211901699172594 931824765 873337306 989984298 100 100 865390253632273253 57386621 383031442 12714487 100 100 686019526255884589 402200824 390448024 787795379 100 100 69731743...
output:
83048013268126532 878933380727111050 1125461885842044854 16727075182053013 922776809648964969 176863836111125218 192798029529355002 467366007572391609 551582070233307208 62564362598209680 558258007551717625 587080141343160644 675632507746530220 1109183033313951410 183230424049416718 1033159646634851...
result:
ok 50 tokens
Test #17:
score: 0
Accepted
time: 707ms
memory: 38124kb
input:
50 75 89 36 3 20 20 76 49 64 1 13 15 44 89 8 4 18 12 83 27 50 20 3 9 40 37 19 19 4 20 35 94 28 20 14 4 14 84 57 6 8 7 98 60 70 6 6 7 43 81 75 12 4 6 11 74 72 1 7 20 6 19 48 12 7 7 14 29 1 16 4 6 17 36 5 13 17 2 54 96 15 14 13 16 92 72 68 1 2 8 28 3 55 9 15 5 51 37 98 13 2 18 43 25 59 9 4 20 62 18 91...
output:
540 374 368 458 385 456 258 304 278 377 169 122 270 482 152 167 474 410 351 452 265 488 248 348 166 286 290 142 456 640 318 164 296 240 176 242 318 312 452 99 206 192 438 378 303 439 662 378 204 202
result:
ok 50 tokens
Test #18:
score: 0
Accepted
time: 698ms
memory: 38132kb
input:
50 10 53 76 76 10 81 52 74 44 81 60 75 43 24 6 51 43 76 59 91 66 27 88 92 6 22 100 86 69 97 67 98 4 32 80 73 21 85 24 19 65 24 54 64 87 62 76 38 63 82 12 69 24 79 21 46 78 28 90 73 48 34 42 99 95 26 39 29 89 5 6 82 60 54 4 61 44 11 13 5 1 64 47 39 14 10 15 80 47 73 65 12 60 11 3 60 16 43 74 100 43 3...
output:
1527 2949 1184 3163 2293 1915 1370 2520 1655 2477 2463 1246 1364 564 1386 883 1569 1141 3314 1045 3293 2335 1093 1867 2160 2270 3108 655 1135 1546 2117 2830 1020 2067 2952 1123 1947 934 869 1807 872 1311 738 1399 896 1589 2509 2669 1988 3377
result:
ok 50 tokens
Test #19:
score: 0
Accepted
time: 722ms
memory: 38084kb
input:
50 68 21 432 303 449 461 45 27 507 58 676 608 100 31 569 123 54 660 11 52 240 347 80 516 27 88 623 578 690 758 68 77 323 492 15 548 64 46 837 30 319 901 58 30 922 762 373 289 8 75 172 279 770 156 1 17 943 276 41 746 76 1 429 677 900 396 92 49 750 463 639 217 22 61 698 384 636 585 72 75 208 35 702 41...
output:
21385 26100 26820 15087 43778 21713 42352 25895 14714 33346 21696 23375 34356 19305 22397 30178 34212 16605 4799 26602 21102 33020 10669 26172 30766 12597 20563 26792 40645 27052 18600 14520 34862 21573 23561 44799 48848 36897 9422 17874 17115 42042 18825 15451 27815 21766 20746 30394 41400 32570
result:
ok 50 tokens
Test #20:
score: 0
Accepted
time: 735ms
memory: 38124kb
input:
50 25 82 5031 25 23 166472243 59 42 4137 95 64 823957034 66 89 218 43 71 643252032 22 15 443 76 28 28759402 29 90 3131 29 77 269302820 71 18 671 15 43 775067646 78 50 3567 73 40 420915306 57 10 3775 100 33 929046980 73 13 3605 70 3 235049379 99 80 457 65 65 268516703 85 27 3407 9 91 908458723 66 75 ...
output:
16647229171 74980099410 13508295608 862783460 21274929249 28677503745 35356895349 80827096192 19979203250 8055505575 75402075402 61327466392 9683231974 3667814111 19960143592 47486703085 4485549906 34440676880 48867160025 46172326547 37270291833 28976915876 17695587043 10469499753 43167928845 685566...
result:
ok 50 tokens
Test #21:
score: 0
Accepted
time: 724ms
memory: 38140kb
input:
50 70 5 1077 793381912 60686693 762076373 64 57 2837 601538527 763339543 33559841 37 7 4389 301465489 23822875 546679766 64 79 4163 552379368 121125706 420262296 81 1 1595 150971827 898198802 949827316 65 92 1047 638721293 421372687 868202839 97 5 1956 337173978 870619367 875858249 91 30 288 7614104...
output:
46282308927 20605459162 54196378905 47219703578 57950816881 57152581700 63387221729 31183482830 72070321359 44230899901 30172043832 57518317697 19408265843 25372596099 55001015010 110726947395 15608006294 23157214248 38217825120 11661803296 25069704228 101904944080 75759650726 43109382268 5873532540...
result:
ok 50 tokens
Test #22:
score: 0
Accepted
time: 769ms
memory: 38116kb
input:
50 17 1 7698 51 778 51908886 70 61 809 612 480 580685545 21 32 9434 923 540 36971512 76 78 1714 675 587 944044572 72 24 6336 592 985 907695667 26 70 196 20 604 340530660 27 77 6472 273 962 213926548 88 81 4462 536 757 418086825 67 63 9244 810 495 311272446 19 90 3396 821 650 335511719 82 31 119 787 ...
output:
6436702948 23227468624 5065299578 55698706055 102569625554 6810627572 24387669411 39300284921 42333130191 27512083701 13829171109 44213901785 8482546615 51308498988 27559312674 102359847012 29665192208 128665684594 68366811685 41549118934 15713910984 103087083702 17972478975 6066631402 7301580928 13...
result:
ok 50 tokens
Test #23:
score: 0
Accepted
time: 745ms
memory: 38140kb
input:
50 80 78 59818 99 648 70274837 89 86 45553 106 736 937872686 14 94 14467 942 437 948924897 35 33 63839 726 39 821973246 43 36 43595 332 312 674463054 24 94 44582 724 90 82962720 2 52 54193 532 111 951712018 57 23 27481 269 810 903608093 74 91 67784 337 940 165037029 100 46 98124 420 793 895265855 86...
output:
24315103160 283237562754 161317311927 293444468592 198966696270 24805859698 313113256096 211444547596 60733763245 396602788835 96200445690 16327490173 273310161394 237899550690 99553387828 63763636027 35450940233 303816373111 169994065298 285552694727 78027397675 52701286299 323605283216 26399643395...
result:
ok 50 tokens
Test #24:
score: 0
Accepted
time: 727ms
memory: 38068kb
input:
50 87 78 566136 7306 8152 50880772 40 26 170115 3471 7996 72838857 29 4 397870 8606 923 107860899 42 38 639028 3264 338 540447516 55 43 244139 8726 14 104082553 34 13 890578 1777 1560 540754852 8 23 146202 6370 3105 159541340 69 15 141367 1316 3407 361103259 6 98 719016 9416 6216 412580680 51 59 302...
output:
54137370740 42465147784 96211993525 611246174366 72753792003 721907752990 86311915260 192106967931 494684350592 406817504447 22387466935 278271156890 77319680157 53204748249 97891175925 695380959492 311472713930 429626494820 1236200301573 136037402999 426372725978 21643916722 1113113807491 902055779...
result:
ok 50 tokens
Test #25:
score: 0
Accepted
time: 735ms
memory: 38184kb
input:
50 9 11 458926710 7361 2338 103992962 65 72 677079600 1431 5761 507329005 92 80 207861978 1468 3972 440639559 95 35 348638818 8812 7844 406982766 99 37 316934697 4982 9581 966023972 81 59 26721338 4856 8848 208746094 99 64 993381837 1596 2118 920993330 89 76 784440060 6225 3014 724540433 16 84 26673...
output:
3150570820224 18669200148454 8984200047979 10746787122740 24321585708985 1525934127020 41051435750116 28698322145874 13447213934489 6726132321423 4516094948744 5154183761030 7495923009550 2687419837184 7046892334357 11433627710580 6160101762838 13114205376659 16940318400738 10077836610227 1978096215...
result:
ok 50 tokens
Test #26:
score: 0
Accepted
time: 745ms
memory: 38048kb
input:
50 72 23 19205136 585391275 508265309 942270296 82 88 652701894 571493274 596630346 723065231 27 68 114721779 180715255 111786102 501847932 42 81 613631574 523856864 656300559 824808652 32 38 881274889 679231178 767212585 12901801 31 76 179105229 679287721 94772671 640787874 64 3 333293210 89733220 ...
output:
5851944629621 26142389869460 7604320638217 28909912217584 556296711827 12134407195157 4008447489492 17546558077469 7147993688987 15969308152055 8934392588891 38301013855085 133421946836 6892674102788 7018415851522 8482224520469 3120923408518 4709451022680 2674651792927 4683298963917 303572451766 107...
result:
ok 50 tokens
Test #27:
score: 0
Accepted
time: 752ms
memory: 38184kb
input:
50 35 10 846 251601 817117 564704764 21 50 4086 675711 547635 366772361 73 37 3229 447757 954326 7058823 70 90 1739 265734 311215 462015491 79 38 4975 814763 232683 811183086 43 69 3369 383369 657016 235933567 30 93 2971 996569 247875 955831243 33 81 4578 77276 8240 243419810 92 64 4626 712055 47695...
output:
23166731034 33121384611 594128775 27294062377 81202693810 19433287818 73626560388 23369719248 15314043627 36955196763 43562568207 44363235422 62904353959 43576879777 31161581613 54645051360 3253834860 37285030319 32245447627 57000120762 24211940302 41806980535 59851977310 55157809601 6271702252 1261...
result:
ok 50 tokens
Test #28:
score: 0
Accepted
time: 756ms
memory: 38136kb
input:
50 91 76 3715 531864 215135 709001709 56 90 1849 774286 894196 942115273 43 57 2245 747627 473553 331344902 99 54 3652 860334 370137 586245566 86 52 1030 432877 365760 970974437 50 47 2180 642205 347634 537686226 99 51 3856 271197 240771 592158477 52 35 4737 835081 570455 309334619 82 78 3699 174909...
output:
61039351022 57573251823 22283622227 49938294224 43731751364 35553957763 52136761416 30143771026 54431316445 92905807918 36996079477 32607582116 44478633149 9268247402 44412016052 10475931879 30907081619 61088320522 8695539330 40248993645 9344163201 10946841420 44823283276 35041444502 4676699145 8203...
result:
ok 50 tokens
Test #29:
score: 0
Accepted
time: 761ms
memory: 38128kb
input:
50 95 92 1287 3614 613153 708074461 57 34 2508 615965 240757 812425481 44 98 3912 47497 216971 800855172 71 40 3411 230743 204867 5442937 54 64 3123 826800 340053 280508891 41 84 3888 966449 5548 694214693 38 74 4741 802721 233667 228485712 75 69 3730 401397 356863 524992533 46 46 1784 446274 72524 ...
output:
36144489776 57728484687 70499104753 462511656 22253890682 61177406265 22264913755 45215683321 32756627744 19657085045 22687717901 20391092063 8636904881 2108198075 13269908269 49180039076 67505502295 21431491320 55103180578 5323628990 54845881016 16128333220 23443173451 55751556150 77084066670 91372...
result:
ok 50 tokens
Test #30:
score: 0
Accepted
time: 777ms
memory: 38124kb
input:
50 40 86 2001 283876 76579 852371406 89 87 2922 490349 554614 537511498 41 79 774 57768 703493 125141251 83 40 3170 825343 72300 129673012 93 70 2073 412210 505834 590043346 58 74 4853 290693 471974 995967351 83 79 4638 301542 193859 424621458 100 54 1735 159201 886374 295940046 50 60 2765 684935 40...
output:
53722620856 40933361660 4911778258 10441344443 37823271424 98635500737 40811907724 17523515616 55922332809 48400981952 18622809614 74008087104 13989857000 28553668954 10741611580 10165923237 3639098936 4639045349 9606840419 14218320184 68189559839 17070502781 58289191183 47014708060 38643472779 4119...
result:
ok 50 tokens
Test #31:
score: 0
Accepted
time: 763ms
memory: 38108kb
input:
50 57 52 1728 755626 474597 146411455 96 55 3581 332028 901175 112854410 56 67 2686 357638 222719 594651521 97 99 3175 163047 907030 253903087 64 92 4166 30325 704319 604610504 94 57 1511 806424 162592 152495818 64 86 3370 576170 186755 60948692 59 77 4790 917005 640077 511597959 54 88 3747 956301 9...
output:
8712563822 9630191008 43452730170 20399086244 55087173437 8442666494 5061302274 50210054660 32582672127 54125125291 73684047581 53644594014 6130222448 2431276613 20090429591 4424111504 31335513070 58145303446 60686902383 22483627319 84078312180 13568055740 55831340367 36539402687 2014099404 87330400...
result:
ok 50 tokens
Test #32:
score: 0
Accepted
time: 797ms
memory: 38112kb
input:
50 99 78 2442 35888 872616 290708400 76 100 4240 430603 215032 688197322 71 77 1457 657508 966137 213904896 82 67 2933 790351 741760 378133162 76 89 3117 391543 645908 914144958 74 79 2477 97964 820506 749215773 87 85 1359 74990 179651 402308631 97 80 3783 483321 169588 577512768 95 95 4974 451858 2...
output:
20414127672 63374412711 11641479875 29187592323 72300839305 52510511408 20933949406 50301236396 58295495706 15841283516 16490439236 39771836731 66803702651 47664478641 711117755 51050486014 74864417710 49497341639 18882733433 10909842490 54274372729 1892388187 22704553759 11918130900 23342515330 491...
result:
ok 50 tokens
Test #33:
score: 0
Accepted
time: 767ms
memory: 38060kb
input:
50 97 84 2169 507639 303338 729972640 97 88 4900 272282 528889 413283338 70 98 3369 957378 485363 388447870 95 82 4846 160759 609194 502363236 89 71 160 9658 811689 223679413 74 88 4184 422208 511124 610776943 78 86 1998 349619 172547 38635865 77 87 3943 241126 955996 498203385 83 78 905 723223 5532...
output:
48233136375 40995439844 31972958206 49307983234 4043516353 55666990565 2467823213 44448083371 21389893335 6165704508 57146065592 4526129820 19206866489 2940914953 9091680895 88276223018 17936449055 4240468158 49780543898 26968004567 7550182608 70930582838 21211767710 31234171712 17988828407 13003136...
result:
ok 50 tokens
Test #34:
score: 0
Accepted
time: 772ms
memory: 38136kb
input:
50 81 89 2883 755197 701356 729045393 92 86 2417 146665 842746 283593547 99 100 5035 257249 37293 712733948 99 95 543 722655 411219 921560607 93 82 4407 595068 10174 943279275 85 85 100 713748 169038 207496898 95 85 5037 848439 132739 674963100 90 85 1948 998930 485507 418894002 85 95 1886 994589 75...
output:
55520305805 19921943136 71303180835 30453553152 88725760014 2922405658 67595541717 26067403106 7081104190 11980802736 41191375794 30833751585 3897835086 72009462682 82019168460 45700009302 14318374764 63199920087 52726177168 31290425431 27000453228 73276493595 64795460886 44352969858 55854482944 240...
result:
ok 50 tokens
Test #35:
score: 0
Accepted
time: 803ms
memory: 38120kb
input:
50 99 100 2610 226947 132078 168309634 98 97 922 988345 189307 153903755 95 96 1898 524415 748008 477211515 97 97 2456 125768 278653 191014874 91 96 3357 988991 175955 252813730 94 94 1807 5288 635464 69058069 99 99 2781 123067 92931 16323038 94 91 3095 565246 239210 779776107 94 95 5021 490146 3730...
output:
12145125654 6671234419 29668325409 13400006607 20827592333 4183221340 1240736629 61666908143 32465525496 39706871549 9746085194 62829207775 20969490312 7195135832 66924206557 8087933138 19953600672 16506918139 3262166116 38065980984 21242693678 15057743207 14724454546 83588691840 13711197242 1788672...
result:
ok 50 tokens
Test #36:
score: 0
Accepted
time: 805ms
memory: 38132kb
input:
50 100 100 2701 839475 277426 848611293 100 100 3127 109499 829589 179780203 100 100 2805 123079 281568 247433802 100 100 4637 400667 287050 724824866 100 100 3097 199820 215304 610633680 100 100 1475 471340 708437 800730262 100 100 68 884859 77188 708883842 100 100 4211 421580 768451 849867036 100 ...
output:
62032946816 14277982075 18588534480 69650182735 48273470460 43306444340 8524308890 78298861775 84657545175 29609620545 45443335755 5779051667 73525019817 19891099841 53197160054 28961048721 2355900978 59227313187 24877400962 11908417762 12313173420 26438891969 69411736171 8467306190 32630291935 6748...
result:
ok 50 tokens
Test #37:
score: 0
Accepted
time: 731ms
memory: 38180kb
input:
50 60 14 85529 453417 275137 882637801 89 92 30016 53251 938117 774180313 37 13 5065 478812 228831 624236650 13 30 6759 192634 156225 318564812 78 71 82154 829095 554202 639623926 96 22 36038 704765 563845 402427191 71 41 43076 497906 428401 333797882 33 60 15880 908964 986833 65401562 25 16 34435 9...
output:
365418866303 189700410069 63053833925 36972759687 259609862814 108192307123 98147901507 11727966972 255321733247 184581388280 411072897557 310473176748 48628616614 20685622258 210842016340 97631878363 52730408980 236899627270 222934508856 53853597313 138595529816 308634805780 56653517220 24318288192...
result:
ok 50 tokens
Test #38:
score: 0
Accepted
time: 751ms
memory: 38128kb
input:
50 54 57 33088 884139 539378 29701550 52 87 95887 367108 248325 487274534 28 84 4935 189526 739101 468546237 86 36 68655 284260 386300 749184753 96 24 268 994876 88657 382557923 77 60 27578 362679 283800 717107601 45 63 9192 458098 788339 574139473 55 79 73684 662667 644746 550643601 82 38 5800 2191...
output:
7679931960 213434138497 46479129689 277955181923 8828176277 168529462983 78098511527 211464085390 86718744034 61004288516 90351681602 37634422194 306404183200 2393435581 307115344838 246897730967 133514099386 262273121088 64972151784 370051667798 214964098933 10495983196 107441467255 153470238258 32...
result:
ok 50 tokens
Test #39:
score: 0
Accepted
time: 746ms
memory: 38108kb
input:
50 65 36 13350 282157 612131 586830706 46 58 70271 746373 558533 200368756 43 57 39397 708752 249372 312855824 82 96 39063 118990 616375 769739287 79 37 85679 160657 623111 270716112 79 80 19118 829105 812266 441853418 67 50 40717 450994 115574 254672552 81 91 64192 224882 592259 330852936 48 39 771...
output:
95800350467 75153566692 87922356520 215537890420 112084488222 86628669081 72743831342 118738929589 305379915590 191880987783 215404273517 69837011968 91185311850 317343776784 14797184039 260593814730 42568712610 135352583579 112844721279 23409094788 15965879598 21362055619 157138607570 21506465623 7...
result:
ok 50 tokens
Test #40:
score: 0
Accepted
time: 755ms
memory: 38068kb
input:
50 95 93 85100 712879 876372 879118647 47 97 11950 60230 901446 208430273 80 42 39267 227978 568154 716973923 56 65 33663 953719 846450 495326524 76 90 79601 134950 190270 158874300 53 70 43362 487019 564925 461566532 57 79 82641 411186 475512 495014143 83 58 97805 978585 250172 111062271 65 80 4001...
output:
363101815120 32328708439 200821873644 128758460106 63395748310 136011370907 201482887439 49213071583 171540133652 47161813238 10551967328 4620475140 27653168820 41683194697 43353849018 173539129053 242132584982 168057109142 96405585260 28571043702 3589024445 58722241441 118843676094 91082018047 5423...
result:
ok 50 tokens
Test #41:
score: 0
Accepted
time: 769ms
memory: 38136kb
input:
50 93 95 65362 143602 140612 26182395 77 87 86333 374087 987462 921524494 76 63 14946 4100 45720 561283510 86 87 4071 788449 43820 780722274 66 85 65012 268027 724724 901808297 54 91 34902 177637 93392 481279646 62 97 14165 436786 770042 735355734 75 74 55609 732289 940789 596304310 80 95 11384 3694...
output:
9482709046 383373760076 97103263550 70340784959 325566773088 127084351794 123744154030 199128875571 87665095531 291991077540 198528223479 27997604043 154524800369 86713635095 195477954642 178983951972 333866527713 8737954846 146351809766 113727529287 65314045324 239169731002 239830262056 6148850202 ...
result:
ok 50 tokens
Test #42:
score: 0
Accepted
time: 787ms
memory: 38124kb
input:
50 82 89 37112 541620 213365 173246144 66 60 84908 720648 330374 339651419 93 97 14816 523327 331799 110625802 73 65 65967 623179 273895 506309511 86 88 58934 466512 483371 494999190 84 73 26442 868255 846050 500992760 76 70 56090 396978 97277 270664620 83 68 46117 261800 855598 231289453 95 88 8274...
output:
47307078942 139949597740 19151894505 183897528421 170111948434 115435059665 90679065145 70326711488 166727531032 81687567287 307251774266 120318762844 99650634773 93233816306 177450917446 67566179772 150389566051 18216858529 269877020450 52673538565 105109425950 215969822380 175071512740 34784813306...
result:
ok 50 tokens
Test #43:
score: 0
Accepted
time: 794ms
memory: 38180kb
input:
50 78 72 84671 972342 510310 25342596 73 75 26588 34505 640582 347712936 85 80 81982 9849 842069 514743901 99 73 69080 457909 503970 526864045 99 92 77049 664997 50529 383157379 97 87 50686 301977 374517 225738577 79 73 87614 389874 233023 511006211 79 95 79729 80911 546215 716531493 87 96 21411 189...
output:
10461492926 80329961785 208482404084 196008172651 150591170485 72000971049 214120632162 286146997018 49461208940 11690903288 305349389237 172834922081 381140721548 406509040341 74793264525 114553540604 84595941321 430911408378 138726916674 283179327095 108629218045 237075787565 120294531448 32388256...
result:
ok 50 tokens
Test #44:
score: 0
Accepted
time: 807ms
memory: 38128kb
input:
50 91 89 89125 370360 583063 317630537 87 82 971 348362 759303 60807157 80 87 81853 753267 128148 359053488 98 91 30976 325342 701341 957483987 87 83 62459 606586 584983 831124079 84 87 74930 992595 127176 395194795 80 81 62242 350066 560258 751347802 95 90 70238 610423 428321 496740828 94 81 16968 ...
output:
134204328713 2727164222 145428761775 238503965696 293809200296 153002633688 265239358648 186294494521 39394995302 231050266641 16517841739 329759945302 229276267831 10285424033 224126888060 40853177502 164602538731 45847529357 252287876149 2410793728 32108525857 354342882700 343568902681 28409210738...
result:
ok 50 tokens
Test #45:
score: 0
Accepted
time: 805ms
memory: 38120kb
input:
50 91 97 36683 768378 847303 464694285 97 94 42650 919115 69511 773901378 90 97 81723 272493 638418 908395779 95 92 1384 127368 188312 683071224 91 100 56382 772367 119438 719282268 98 100 33766 650509 655643 414907909 99 97 61063 342962 920196 431880881 95 91 60746 364126 151642 276950163 91 93 883...
output:
126153012293 226012436709 367361086164 36220076328 241691271579 108055018191 151168875731 96663585849 17766691109 81176993286 249171067571 297454985134 94963308744 56317384378 41379213342 64027255406 309576909096 90768279632 387820316202 353270564966 185328638473 198490716363 290027427340 3177593439...
result:
ok 50 tokens
Test #46:
score: 0
Accepted
time: 808ms
memory: 38188kb
input:
50 100 100 73403 913726 148962 529906297 100 100 63804 335205 104743 665452744 100 100 4579 30245 828001 591270738 100 100 8988 201173 998303 387574661 100 100 67210 844420 715196 995948540 100 100 32522 466586 327836 498784096 100 100 22854 294514 737896 51564159 100 100 92888 636471 434059 8045167...
output:
203024105323 237724235735 56845270955 52097135007 365539239980 127280402700 11102515009 346764323092 44307319204 160795612433 298758677160 52010570138 381390576246 111121456925 64293856648 48684474792 26531368025 16089805879 176046931230 26241625322 95143375462 243947659607 285685036823 321372330269...
result:
ok 50 tokens