QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#210378 | #4360. Melons | Xiaoyang | 100 ✓ | 208ms | 16744kb | C++14 | 1.3kb | 2023-10-11 12:42:14 | 2023-10-11 12:42:15 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define pii pair<int,int>
#define pll pair<long long,long long>
#define pb push_back
#define debug(x) cerr<<#x<<"="<<x<<endl
#define pq priority_queue
#define inf 1ll<<60
#define rep(i,a,b) for (int i=a;i<(b);i++)
#define MP make_pair
#define SZ(x) (int(x.size()))
#define mod 1000000007
#define ALL(x) x.begin(),x.end()
#define endl "\n"
void inc(ll &a,ll b) {a=(a+b)%mod;}
void dec(ll &a,ll b) {a=(a-b+mod)%mod;}
int lowbit(ll x) {return x&(-x);}
const ll maxn=2222222;
ll dp1[maxn],dp2[maxn];
//at index i how many boxes are there (from the back)
//at index i what is the leftover amount at the last box
ll sum[maxn];
ll a[maxn];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
//freopen("i.txt","r",stdin);
ll n,l;cin>>n>>l;
rep(i,1,n+1){
cin>>a[i];
}
rep(i,1,n+1){
sum[i]=sum[i-1]+a[i];
}
sum[n+1]=inf;
//rep(i,1,n+1)cout<<sum[i]<<" ";
for(int i=n;i>0;i--){
int first=upper_bound(sum+1,sum+n+1,sum[i-1]+l)-sum;
debug(first);
dp1[i]=dp1[first]+1;
if(dp1[i]>1){
dp2[i]=dp2[first];
}else{
dp2[i]=sum[first-1]-sum[i-1];
}
}
rep(i,1,n+1){
cout<<dp1[i]<<" "<<dp2[i]<<endl;
}
return 0;
}
詳細信息
Subtask #1:
score: 6
Accepted
Test #1:
score: 6
Accepted
time: 1ms
memory: 5728kb
input:
1 1000000000 1000000000
output:
1 1000000000
result:
ok single line: '1 1000000000'
Test #2:
score: 0
Accepted
time: 1ms
memory: 5748kb
input:
2 1000000000 1 1
output:
1 2 1 1
result:
ok 2 lines
Test #3:
score: 0
Accepted
time: 1ms
memory: 5744kb
input:
2 1 1 1
output:
2 1 1 1
result:
ok 2 lines
Test #4:
score: 0
Accepted
time: 1ms
memory: 5796kb
input:
2 2 1 1
output:
1 2 1 1
result:
ok 2 lines
Test #5:
score: 0
Accepted
time: 0ms
memory: 5696kb
input:
1000 997998033 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 9900990 99009...
output:
10 990099000 10 980198010 10 970297020 10 960396030 10 950495040 10 940594050 10 930693060 10 920792070 10 910891080 10 900990090 10 891089100 10 881188110 10 871287120 10 861386130 10 851485140 10 841584150 10 831683160 10 821782170 10 811881180 10 801980190 10 792079200 10 782178210 10 772277220 1...
result:
ok 1000 lines
Test #6:
score: 0
Accepted
time: 148ms
memory: 13548kb
input:
199996 840599364 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500000000 500...
output:
199996 500000000 199995 500000000 199994 500000000 199993 500000000 199992 500000000 199991 500000000 199990 500000000 199989 500000000 199988 500000000 199987 500000000 199986 500000000 199985 500000000 199984 500000000 199983 500000000 199982 500000000 199981 500000000 199980 500000000 199979 5000...
result:
ok 199996 lines
Test #7:
score: 0
Accepted
time: 124ms
memory: 15508kb
input:
199997 953375541 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142857142 142...
output:
33333 714285710 33333 571428568 33333 428571426 33333 285714284 33333 142857142 33332 857142852 33332 714285710 33332 571428568 33332 428571426 33332 285714284 33332 142857142 33331 857142852 33331 714285710 33331 571428568 33331 428571426 33331 285714284 33331 142857142 33330 857142852 33330 714285...
result:
ok 199997 lines
Test #8:
score: 0
Accepted
time: 159ms
memory: 15392kb
input:
199998 998551173 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 1996007 199...
output:
400 994011486 400 992015479 400 990019472 400 988023465 400 986027458 400 984031451 400 982035444 400 980039437 400 978043430 400 976047423 400 974051416 400 972055409 400 970059402 400 968063395 400 966067388 400 964071381 400 962075374 400 960079367 400 958083360 400 956087353 400 954091346 400 95...
result:
ok 199998 lines
Test #9:
score: 0
Accepted
time: 151ms
memory: 13852kb
input:
200000 999602011 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 2499 249...
output:
1 499800000 1 499797501 1 499795002 1 499792503 1 499790004 1 499787505 1 499785006 1 499782507 1 499780008 1 499777509 1 499775010 1 499772511 1 499770012 1 499767513 1 499765014 1 499762515 1 499760016 1 499757517 1 499755018 1 499752519 1 499750020 1 499747521 1 499745022 1 499742523 1 499740024 ...
result:
ok 200000 lines
Subtask #2:
score: 21
Accepted
Test #10:
score: 21
Accepted
time: 1ms
memory: 5740kb
input:
6 100 49 52 49 51 49 50
output:
4 99 3 99 2 99 2 50 1 99 1 50
result:
ok 6 lines
Test #11:
score: 0
Accepted
time: 1ms
memory: 5744kb
input:
9 100 19 81 19 81 20 81 19 81 19
output:
5 100 5 100 4 100 4 100 3 100 2 100 2 19 1 100 1 19
result:
ok 9 lines
Test #12:
score: 0
Accepted
time: 5ms
memory: 5764kb
input:
1000 501221305 499347247 352547107 289636738 184152014 390627298 251862609 479632900 238217645 406962625 421180409 407813708 350715337 16103427 436601702 321990828 228795905 81742638 148331264 156863576 88567304 186109148 180919935 360000243 492570273 309436348 211595158 196863856 13788395 425536859...
output:
677 167164092 676 167164092 675 167164092 675 167164092 674 167164092 673 167164092 672 167164092 671 167164092 670 167164092 669 167164092 668 167164092 667 167164092 666 167164092 666 167164092 665 167164092 664 167164092 663 167164092 663 167164092 663 167164092 662 167164092 662 167164092 662 16...
result:
ok 1000 lines
Test #13:
score: 0
Accepted
time: 5ms
memory: 5704kb
input:
1000 900684289 818124962 449762901 477402583 351168702 822608860 73832705 664133651 408595051 697127034 689359205 210358593 188372821 283194673 669830022 895901781 254608187 587342133 213769765 225398181 881676768 789600264 301163615 593886662 367624461 689978590 80913028 373160552 253070639 5788118...
output:
666 548961266 665 548961266 664 548961266 664 548961266 663 548961266 662 548961266 662 548961266 661 548961266 660 548961266 659 548961266 658 548961266 658 548961266 658 548961266 657 548961266 656 548961266 655 548961266 655 548961266 654 548961266 654 548961266 653 548961266 652 548961266 651 54...
result:
ok 1000 lines
Test #14:
score: 0
Accepted
time: 0ms
memory: 5700kb
input:
985 423895602 76074430 50221527 49471316 45598053 56912252 49893461 45939551 54791571 56942340 59459611 40065107 64854001 74613594 73510920 74867270 51665118 60656183 55648065 42438734 50032945 57905194 66471259 75368807 47839724 68677133 41410881 47814019 56117829 59792117 48288549 56177928 5334311...
output:
146 368195948 146 368195948 146 368195948 146 368195948 146 368195948 146 368195948 145 368195948 145 368195948 145 368195948 145 368195948 145 368195948 145 368195948 145 368195948 144 368195948 144 368195948 144 368195948 144 368195948 144 368195948 144 368195948 144 368195948 143 368195948 143 36...
result:
ok 985 lines
Test #15:
score: 0
Accepted
time: 2ms
memory: 5688kb
input:
946 874350403 20057363 16778250 11505446 15244433 16212512 18643710 18328256 17142811 16133973 14850603 10366806 17460007 15863861 16526803 19510631 10714045 17065034 16641605 14347355 10980224 11743752 20310011 19088357 10320238 13238840 17585305 16978600 13251538 20416745 16023684 14914423 1874846...
output:
17 547665229 17 508216477 17 508216477 17 508216477 17 508216477 17 508216477 17 508216477 17 491217223 17 409054884 17 409054884 17 409054884 17 409054884 17 373034777 17 373034777 17 373034777 17 323560081 17 303655200 17 285406822 17 285406822 17 285406822 17 244344279 17 244344279 17 244344279 1...
result:
ok 946 lines
Test #16:
score: 0
Accepted
time: 0ms
memory: 5712kb
input:
865 713138719 61 288413 52986 426095955 6605 21350 108580544 6456 5773 55974 57 207 581292 7086 104123 694063981 8355 71475177 35 4 36808804 159307522 164 44 11 670040268 12997700 9532 6220511 919 57632498 3184 550 12 56 65482137 72259 63 4849027 1826904 239978733 169169 18863 108672590 678952 10376...
output:
53 610315834 53 610315834 53 610315834 53 610315834 53 610315834 53 610315834 53 610315834 52 610315834 52 610315834 52 610315834 52 610315834 52 610315834 52 610315834 52 610315834 52 610315834 52 610315834 51 610315834 51 610315834 51 610315834 51 610315834 51 610315834 51 610315834 50 610315834 5...
result:
ok 865 lines
Test #17:
score: 0
Accepted
time: 0ms
memory: 5692kb
input:
998 647993326 11666634 7746 5404150 952586 2 287497162 1 846 28 59508 152 117 120087754 231 1 5 31405 127 24447570 1533 1 3 494724119 91628 23353364 2977348 23955430 255643447 557 10 454057 97 116 3054214 1431926 21 7182728 1033 41456 4 7 182 32102911 18232 32 208793045 24 1590 16 1097425 992144 746...
output:
63 49435057 63 49435057 63 49435057 63 49435057 63 49435057 63 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 62 49435057 61 49435057 61 49435057 ...
result:
ok 998 lines
Subtask #3:
score: 29
Accepted
Test #18:
score: 29
Accepted
time: 163ms
memory: 12872kb
input:
200000 487364444 10654 17572 18762 15766 10400 18457 17396 17411 11350 17474 15240 11004 11735 13727 11276 14278 12776 18151 15179 10254 12959 13898 20150 18056 11788 14697 16944 18729 11250 10755 12314 11762 14916 12143 15735 17509 14792 12292 15100 12092 15003 15712 20302 12968 18562 19199 13751 1...
output:
7 122715435 7 122697274 7 122697274 7 122670498 7 122670498 7 122651005 7 122618104 7 122607444 7 122592896 7 122578910 7 122567931 7 122553919 7 122542980 7 122524377 7 122524377 7 122505483 7 122477827 7 122477827 7 122477827 7 122414735 7 122414735 7 122414735 7 122403612 7 122386378 7 122386378 ...
result:
ok 200000 lines
Test #19:
score: 0
Accepted
time: 160ms
memory: 12872kb
input:
199996 141261000 3345 2888 3004 1858 2733 3052 2870 2122 2119 2669 2950 2012 2740 2506 2840 2490 3174 2809 2052 2308 2460 3486 2507 2992 2166 2706 2589 2034 3273 3073 3676 3263 3069 3099 3342 2029 3162 2496 3586 2009 2859 3664 3202 2905 3431 3050 3202 2892 2046 2931 2392 3152 2100 2109 2220 3135 354...
output:
4 130360437 4 130357950 4 130354412 4 130354412 4 130349201 4 130344350 4 130342149 4 130338655 4 130338655 4 130338655 4 130335668 4 130327976 4 130327976 4 130324796 4 130322633 4 130318956 4 130318956 4 130314560 4 130311506 4 130309041 4 130305383 4 130305383 4 130302009 4 130300158 4 130297751 ...
result:
ok 199996 lines
Test #20:
score: 0
Accepted
time: 164ms
memory: 16344kb
input:
199999 946616861 9360 13083 14374 13943 10595 9979 12954 9461 8461 11976 10607 12475 13570 7572 10488 14432 14097 11766 12290 14059 9783 9264 8936 9314 12105 10543 13518 14245 13223 13718 7534 11074 9811 10547 7758 7858 7468 8282 8423 8235 9727 10686 12673 14722 8650 13567 13028 13164 10352 11032 98...
output:
3 324981352 3 324981352 3 324957148 3 324945144 3 324934539 3 324920852 3 324920852 3 324897576 3 324885079 3 324885079 3 324877220 3 324868827 3 324845865 3 324834561 3 324823262 3 324809796 3 324801705 3 324788771 3 324774501 3 324760444 3 324742563 3 324728907 3 324728907 3 324714959 3 324700462 ...
result:
ok 199999 lines
Test #21:
score: 0
Accepted
time: 172ms
memory: 15600kb
input:
200000 283633130 7285 1042 5490 6284 2422 7864 4935 12108 5709 11447 1675 3694 9171 8717 6703 1467 2316 371 9059 291 13438 1375 14468 47196 678 5826 18565 8346 2309 1463 21207 7984 21330 1654 8832 7205 1686 9883 917 1312 2627 834 2623 8472 11033 3637 7800 449 789 1360 3264 877 9442 8367 6710 720 235...
output:
10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 10 283581812 1...
result:
ok 200000 lines
Test #22:
score: 0
Accepted
time: 120ms
memory: 11720kb
input:
123450 969895482 31738 9369 49566 62398 67538 12578 74831 56481 20956 50084 9089 32617 79162 50797 43319 4313 57659 55307 22320 65556 6754 29741 18124 116050 21252 7249 33771 245016 2259 128 34552 38101 13524 4091 54666 43226 61655 22289 6602 7767 129992 16949 2037 5698 3706 41382 94629 109349 25222...
output:
6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 969251205 6 968401470 6 968401470 6 968401470 ...
result:
ok 123450 lines
Test #23:
score: 0
Accepted
time: 148ms
memory: 13052kb
input:
178251 62807399 2610 7822 3021 594 264 314 9725 6439 5795 1081 133 9908 1299 560 4057 9802 6698 24272 3097 1749 4585 536 2588 6750 7219 2924 4268 8780 20111 6612 10277 15735 13256 7885 5251 10716 6731 1569 982 5291 2698 229 3305 18176 7257 472 4492 6220 2433 19313 4905 4544 6729 1339 6578 306 6119 4...
output:
7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 62150400 7 6...
result:
ok 178251 lines
Subtask #4:
score: 33
Accepted
Test #24:
score: 33
Accepted
time: 143ms
memory: 14752kb
input:
199991 985109562 640903676 423863576 684098696 954704775 568853942 629634947 964242698 560478408 102023353 607218645 949573452 513804300 392731599 59413618 88162421 468486592 571938430 575500251 595722170 976965132 134183550 375294704 667027699 146989020 225677555 626114030 972050696 617268087 22697...
output:
133346 171739222 133345 171739222 133344 171739222 133343 171739222 133342 171739222 133341 171739222 133340 171739222 133339 171739222 133338 171739222 133338 171739222 133337 171739222 133336 171739222 133336 171739222 133335 171739222 133335 171739222 133335 171739222 133334 171739222 133333 1717...
result:
ok 199991 lines
Test #25:
score: 0
Accepted
time: 208ms
memory: 13780kb
input:
200000 915539800 305965352 223080117 846717307 286247900 229494849 736983206 722337995 415829639 627450988 286353838 195759988 119738711 326248614 580531967 903842034 111380097 291037617 512475953 440187663 287922865 411487263 130954916 318404025 487043732 600840771 403616274 257476423 471411867 748...
output:
133515 864982648 133515 864982648 133514 864982648 133513 864982648 133513 864982648 133512 864982648 133511 864982648 133510 864982648 133509 864982648 133508 864982648 133508 864982648 133508 864982648 133507 864982648 133507 864982648 133506 864982648 133505 864982648 133505 864982648 133505 8649...
result:
ok 200000 lines
Test #26:
score: 0
Accepted
time: 195ms
memory: 13448kb
input:
185549 444295520 65489107 60746678 49283801 50864130 43810169 44253912 60238129 52223789 44833585 43124626 49637609 49738020 64205581 69909065 71130643 56592154 69249727 60934416 58998201 55020872 70377241 64923247 67800623 54928407 52531654 55336860 40724505 64100968 76115002 76974181 73506737 7972...
output:
27235 145344538 27235 145344538 27234 145344538 27234 145344538 27234 145344538 27234 145344538 27234 145344538 27234 145344538 27234 145344538 27234 145344538 27233 145344538 27233 145344538 27233 145344538 27233 145344538 27233 145344538 27233 145344538 27233 145344538 27232 145344538 27232 145344...
result:
ok 185549 lines
Test #27:
score: 0
Accepted
time: 187ms
memory: 16744kb
input:
199999 466612671 75459588 99554295 66202240 92787924 96703420 64390374 77734680 85265496 110481064 113988186 67981887 60596847 63414028 67306439 61351268 100043101 88492184 113108306 91897070 67716729 70023585 84071534 76158002 104260514 60961659 106230853 111584440 65580799 107182981 73271400 87582...
output:
41501 164637400 41501 164637400 41501 164637400 41500 164637400 41500 164637400 41500 164637400 41500 164637400 41500 164637400 41499 164637400 41499 164637400 41499 164637400 41499 164637400 41499 164637400 41498 164637400 41498 164637400 41498 164637400 41498 164637400 41498 164637400 41497 164637...
result:
ok 199999 lines
Test #28:
score: 0
Accepted
time: 184ms
memory: 15476kb
input:
199998 663089126 143088492 133959201 199460048 163973627 210471491 230282274 249187546 133797622 246922609 156229662 233815518 209223652 145655442 134012923 206152981 136220604 221478166 168461794 143968361 264040337 136956448 198684468 154477326 157155565 159521967 256114253 183190260 159764291 251...
output:
70434 477955773 70434 477955773 70433 477955773 70433 477955773 70433 477955773 70432 477955773 70432 477955773 70432 477955773 70431 477955773 70431 477955773 70431 477955773 70430 477955773 70430 477955773 70430 477955773 70429 477955773 70429 477955773 70429 477955773 70428 477955773 70428 477955...
result:
ok 199998 lines
Test #29:
score: 0
Accepted
time: 196ms
memory: 13504kb
input:
199611 8659929 3403145 3780420 2906684 4175002 2314337 2746520 3614852 2239091 2249373 2646460 3611642 2792813 3145999 2806486 2743315 4272156 3461706 4188921 3021353 2397150 3945343 3388970 3384063 2509716 4025824 4195105 3161635 2812121 2735444 3750913 4119928 4173344 3432303 4019016 3622562 41267...
output:
93001 2522508 93000 2522508 93000 2522508 92999 2522508 92999 2522508 92998 2522508 92998 2522508 92997 2522508 92997 2522508 92997 2522508 92996 2522508 92996 2522508 92995 2522508 92995 2522508 92994 2522508 92994 2522508 92993 2522508 92993 2522508 92992 2522508 92992 2522508 92991 2522508 92991 ...
result:
ok 199611 lines
Test #30:
score: 0
Accepted
time: 172ms
memory: 14764kb
input:
200000 162845593 17074156 19950690 17729759 30164324 30182655 23115095 21207190 27240535 31195368 29088523 19710503 32264171 25678682 22914994 32354735 24003753 18608812 29546401 21474864 24816049 17714625 31286519 24348459 31351734 20667198 27024748 18289873 24656786 22645434 19440769 19148681 2860...
output:
32478 26900777 32478 26900777 32478 26900777 32478 26900777 32477 26900777 32477 26900777 32477 26900777 32477 26900777 32477 26900777 32476 26900777 32476 26900777 32476 26900777 32476 26900777 32476 26900777 32476 26900777 32475 26900777 32475 26900777 32475 26900777 32475 26900777 32475 26900777 ...
result:
ok 200000 lines
Subtask #5:
score: 11
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #31:
score: 11
Accepted
time: 207ms
memory: 15708kb
input:
199995 829339875 9887495 12005443 15951763 10111029 11494413 12726741 9504372 15907943 11396427 11799068 8386951 10264955 12378933 12368398 12498604 11292259 13432643 8331722 13892973 12046622 8852038 13442667 14368849 11407734 8861230 9019807 8342311 9791805 15122063 14458563 12741120 14652782 1104...
output:
3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 3022 674002960 ...
result:
ok 199995 lines
Test #32:
score: 0
Accepted
time: 200ms
memory: 15320kb
input:
199994 976757568 1123160 1810481 1100369 1335955 1365082 1715434 1395028 1582556 1117342 1065518 1197842 1808394 1891925 1415447 1241486 1089491 1098645 1597400 1219044 1519255 1608106 1258017 1337684 1883232 2035357 1764942 1436571 2066754 1884428 1109243 1849092 1900113 1931125 1936808 1523979 204...
output:
324 255932583 324 255932583 324 255932583 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 239982121 324 23...
result:
ok 199994 lines
Test #33:
score: 0
Accepted
time: 87ms
memory: 8016kb
input:
100003 626938276 126872511 216851313 125 32 1307110 12 36588 10097102 96985 295800 2323 568483482 32548 772399 3 156 81183 1407288 62 16588509 874824 5944825 43887506 17374862 21616 57353 887 66 62 92 8 1469 26473816 737233 2413767 139 88576 1236 497 2 191128 3538703 155008070 744 867 645 17176302 2...
output:
6294 425468082 6294 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6293 425468082 6292 425468082 6292 425468082 6292 425468082 6292 425468082 6292 425468082 6292 425468082 6292 425468082 6292 425468082 ...
result:
ok 100003 lines
Test #34:
score: 0
Accepted
time: 204ms
memory: 16472kb
input:
200000 823244845 1434662 32459049 30 113 101582 82777 6 58067 109875044 1804434 3141910 137533443 640508 49303 21 838532 727022410 90072 53548 714 399 53205118 1773 48218 1350 41055528 12 367 80203 7436 935332 8122 3 10571181 176 4 3009 21193 379154774 142981938 472 1 7917796 30 265 28129474 504 218...
output:
12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12293 254322554 12292 254322554 12292 254322554 12292 254322554 12292 254322554 12292 254322554 12291 254322554 12291 254322...
result:
ok 200000 lines
Test #35:
score: 0
Accepted
time: 156ms
memory: 12788kb
input:
200000 159804746 215725 242847 7511 1728 151379 86148 818 17566 8768 473417 146843 143 310772 14499 106521 64695 261899 319222 214078 34182 143883 19054 34194 28277 45197 29619 273274 27673 29008 18500 143437 302269 14956 457060 291391 123477 55698 199538 210910 33428 195733 34924 14170 266325 77718...
output:
260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 153020846 260 15...
result:
ok 200000 lines
Test #36:
score: 0
Accepted
time: 136ms
memory: 13708kb
input:
199999 774006619 2196059 21318909 6832408 2442320 13084347 19747304 13071459 24502688 835929 2888205 28239259 5518431 2004595 2132281 1734275 6058283 10557982 17711752 19086857 14704695 810703 11042052 21925766 1580477 5552297 21644311 1590770 28224690 11382610 5218471 19727932 8935239 22715703 7062...
output:
1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 1977 511124260 ...
result:
ok 199999 lines
Test #37:
score: 0
Accepted
time: 183ms
memory: 14884kb
input:
200000 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734371716 734...
output:
100001 100000 100000 100000 99999 100000 99998 100000 99997 100000 99996 100000 99995 100000 99994 100000 99993 100000 99992 100000 99991 100000 99990 100000 99989 100000 99988 100000 99987 100000 99986 100000 99985 100000 99984 100000 99983 100000 99982 100000 99981 100000 99980 100000 99979 100000...
result:
ok 200000 lines
Extra Test:
score: 0
Extra Test Passed