QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#437405 | #8781. Element-Wise Comparison | C1942huangjiaxu | AC ✓ | 391ms | 615260kb | C++14 | 642b | 2024-06-09 10:01:01 | 2024-06-09 10:01:02 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=5e4+5;
int n,m,a[N];
bitset<N>b[N],pr[N],su,O;
long long ans;
int main(){
scanf("%d%d",&n,&m);
for(int i=1;i<=n;++i){
scanf("%d",&a[i]);
b[a[i]-1].set(i);
}
for(int i=n-1;i;--i)b[i]|=b[i+1];
O.set();
for(int i=1;i<=n;++i)O.reset(i),b[a[i]]&=O;
for(int i=m;i<=n;i+=m){
pr[i]=b[a[i]];
for(int j=1;j<m;++j)pr[i-j]=pr[i-j+1]&(b[a[i-j]]<<j);
ans+=pr[i-m+1].count();
if(i==n)break;
su.set();
for(int j=i-m+2;j<=min(i,n-m+1);++j){
su=(su<<1)&b[a[j+m-1]];
ans+=((pr[j]<<(m-i+j-1))&su).count();
}
}
printf("%lld\n",ans);
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 5892kb
input:
5 3 5 2 1 3 4
output:
0
result:
ok answer is '0'
Test #2:
score: 0
Accepted
time: 1ms
memory: 5968kb
input:
5 2 3 1 4 2 5
output:
2
result:
ok answer is '2'
Test #3:
score: 0
Accepted
time: 0ms
memory: 6168kb
input:
4 2 1 2 3 4
output:
3
result:
ok answer is '3'
Test #4:
score: 0
Accepted
time: 1ms
memory: 6172kb
input:
4 2 4 3 2 1
output:
0
result:
ok answer is '0'
Test #5:
score: 0
Accepted
time: 1ms
memory: 5800kb
input:
1 1 1
output:
0
result:
ok answer is '0'
Test #6:
score: 0
Accepted
time: 289ms
memory: 614984kb
input:
50000 2 44045 29783 5389 7756 44022 45140 21967 5478 10868 49226 21775 31669 49836 13511 46116 14229 27206 31168 37389 3158 10658 41154 14635 18526 40540 6451 23197 46719 30593 13517 8604 46666 39189 43746 12778 3684 3194 36979 43020 14652 19549 31178 17144 27177 44336 2849 40220 11751 41993 32209 4...
output:
310780127
result:
ok answer is '310780127'
Test #7:
score: 0
Accepted
time: 282ms
memory: 614980kb
input:
50000 2 44015 31580 38779 29675 3269 12273 40322 471 4551 44568 21486 17093 43442 11483 9686 39913 36953 47673 34066 4943 28304 34228 9197 43349 1974 32227 8177 33236 24942 42131 34294 48071 17452 9633 18281 13817 27423 9880 15629 6991 20035 13601 39212 33548 8865 39161 48449 22164 36815 28852 43065...
output:
317708201
result:
ok answer is '317708201'
Test #8:
score: 0
Accepted
time: 302ms
memory: 615056kb
input:
50000 2 45828 16955 24033 12988 15675 6086 482 27940 30132 39389 14266 35347 46159 8317 24605 9737 30077 32664 6326 43387 7896 17806 20481 8573 8438 36474 33708 42437 8187 12300 13318 48764 34683 14983 40909 34874 47938 31131 12519 21122 22457 21062 32953 47733 46731 18062 1061 28388 27032 47303 390...
output:
309719539
result:
ok answer is '309719539'
Test #9:
score: 0
Accepted
time: 283ms
memory: 614984kb
input:
50000 2 17900 11121 24441 14321 9486 32843 40283 49359 21526 27801 47381 11444 24372 25999 16187 49470 11724 21419 31873 49053 47656 4516 33567 25021 42444 36150 1362 3711 31260 49923 19998 7275 2927 29522 40437 39439 30777 6413 17107 30917 48362 29997 47038 23951 25835 23665 2875 18889 10610 26400 ...
output:
313258830
result:
ok answer is '313258830'
Test #10:
score: 0
Accepted
time: 279ms
memory: 615260kb
input:
50000 2 29869 3482 18962 41513 1378 27297 29435 6651 12343 3742 27703 32031 15628 16084 12571 1726 30037 31904 2642 817 26607 21749 34528 33044 39980 26798 41826 37079 2809 33387 10169 47346 8551 24214 40572 43065 41730 32281 16630 47892 48890 34159 12884 8185 38452 15606 19304 8428 24230 31397 2232...
output:
313582202
result:
ok answer is '313582202'
Test #11:
score: 0
Accepted
time: 361ms
memory: 614956kb
input:
50000 25 24181 9781 31983 1958 1472 39943 17049 26890 16005 42039 40012 41453 7508 47251 35614 5522 27201 31665 6000 49393 17743 30487 44282 1097 39409 39745 43972 13876 33786 40423 41046 227 44642 27611 9775 21229 48475 7795 32834 15085 44154 45504 26464 45685 42844 44948 26372 30941 8490 8094 4343...
output:
58
result:
ok answer is '58'
Test #12:
score: 0
Accepted
time: 360ms
memory: 614988kb
input:
50000 25 6313 11310 29122 32400 9407 40175 21363 25205 29691 30033 29057 30793 36967 207 521 12478 24585 23970 5059 11072 43604 39890 37153 33289 32907 12925 22807 9811 13003 49978 46897 4643 36366 15146 47056 35036 620 17016 36024 2580 26634 22497 33728 49094 42598 29510 2588 11492 39217 19535 3568...
output:
64
result:
ok answer is '64'
Test #13:
score: 0
Accepted
time: 358ms
memory: 614956kb
input:
50000 25 7101 46567 42238 21041 47850 43080 21835 14601 21483 45662 8296 49277 44528 8471 16934 49649 1159 37986 23124 44670 27253 4997 22785 23185 23498 28808 42277 2373 4953 45403 17687 6448 6646 11865 37061 16908 43882 22053 18899 32888 3268 13484 8282 28369 45369 32118 19979 14248 18913 30053 37...
output:
4
result:
ok answer is '4'
Test #14:
score: 0
Accepted
time: 363ms
memory: 615244kb
input:
50000 25 9582 16768 44838 18085 12760 46386 18931 47470 38877 23660 42553 15072 1132 7328 39756 19422 43849 5886 9208 46852 49509 26185 42588 9415 41859 21884 49608 29541 6265 4552 30506 11148 40872 12019 7531 39615 10614 12159 2888 43822 43634 44176 10373 12227 32929 26749 20475 3280 27429 22261 80...
output:
28
result:
ok answer is '28'
Test #15:
score: 0
Accepted
time: 363ms
memory: 614988kb
input:
50000 25 18777 32602 29569 8351 12443 5109 46381 5184 35720 26389 29442 26751 49739 48691 22692 18229 45132 45826 46500 38936 3677 2482 3508 36713 12096 4589 31302 45887 18816 9740 42267 2275 7538 34775 41814 36968 10986 25755 13093 20616 34034 13055 36066 41746 36775 48968 33860 5503 17541 49741 47...
output:
38
result:
ok answer is '38'
Test #16:
score: 0
Accepted
time: 382ms
memory: 615248kb
input:
50000 250 15070 16717 48256 4440 24276 17592 15337 6219 15845 49955 49002 14123 11954 42720 46986 13584 375 6790 1018 42467 49666 37960 47896 26126 14305 30153 44783 26247 2186 19154 4711 38130 33117 11795 16035 32042 4312 28081 24406 3372 23671 23565 10262 43282 49792 44765 6270 23998 9630 20581 15...
output:
0
result:
ok answer is '0'
Test #17:
score: 0
Accepted
time: 383ms
memory: 615244kb
input:
50000 250 32999 12775 11772 25874 49304 23859 554 48744 41550 21015 2318 34857 5492 43354 48124 3085 26559 18025 19663 27397 8162 7119 40182 48201 19770 485 5753 11213 44460 3938 18529 23936 49880 39625 12123 18411 21408 25086 5584 32740 44856 10184 25518 26410 8154 32863 42006 2765 40280 3683 16878...
output:
0
result:
ok answer is '0'
Test #18:
score: 0
Accepted
time: 371ms
memory: 614960kb
input:
50000 250 22928 47986 35098 8383 11972 22510 8486 41493 48585 30306 9435 34574 29724 32291 40343 46791 8847 25642 29641 48794 16467 20293 6202 40891 16773 13914 41673 27631 27272 22449 37152 37469 19730 12587 31557 22560 33012 10545 47258 34608 42895 9384 20122 29378 8837 1349 35679 20535 4996 46113...
output:
0
result:
ok answer is '0'
Test #19:
score: 0
Accepted
time: 367ms
memory: 615244kb
input:
50000 250 36861 16192 49341 30106 1351 29655 21972 41150 4325 46324 24748 22273 34437 33000 14086 20930 2504 8074 41168 45497 2444 10511 46004 17140 13625 25174 13248 27153 6569 24280 19503 31955 3203 13349 44602 25448 21658 21387 771 35897 25841 27745 23112 17984 16445 1906 34864 14060 11635 12495 ...
output:
0
result:
ok answer is '0'
Test #20:
score: 0
Accepted
time: 370ms
memory: 614984kb
input:
50000 250 44651 6641 40279 35231 28207 38612 11107 8603 25675 23076 7141 23431 343 11668 30231 16527 34195 1024 41033 19519 48977 43258 28563 10844 33945 35736 36086 45052 14706 942 4482 14894 7123 21236 7458 12068 25490 33428 17469 35720 22947 47689 5494 16359 40002 42780 268 11104 26542 22417 4198...
output:
0
result:
ok answer is '0'
Test #21:
score: 0
Accepted
time: 387ms
memory: 614956kb
input:
50000 2500 14379 23426 37565 11703 16722 24713 7259 1881 29688 49717 36901 49493 45629 33419 30112 28361 17058 33589 4037 42664 37380 27768 23738 34164 166 35225 18988 32069 46294 37628 23027 25485 36939 21058 40737 49052 1332 18528 22198 36262 19911 45924 4900 10113 45552 46061 28514 17326 37847 27...
output:
0
result:
ok answer is '0'
Test #22:
score: 0
Accepted
time: 383ms
memory: 614960kb
input:
50000 2500 34466 46827 37369 40822 41757 21791 45039 23502 1637 29443 39698 26205 9914 11396 14596 19891 25353 23638 29323 19571 47715 40389 19546 10792 12694 4208 35713 17709 10527 24365 48513 52 18581 25583 20762 39977 15848 30246 29361 20276 14687 12765 33114 11724 33811 5277 12928 13307 48208 99...
output:
0
result:
ok answer is '0'
Test #23:
score: 0
Accepted
time: 366ms
memory: 614960kb
input:
50000 2500 16387 44292 32179 15229 16111 23270 44569 21074 15098 5503 5964 18419 30808 33950 3494 37647 13919 39187 49055 42252 24329 8633 45329 3530 34620 36074 6500 37302 28358 22693 30416 17738 36875 17209 38721 12312 9692 7203 27276 29496 21174 39100 42609 13039 4220 37160 44153 45312 20685 1495...
output:
0
result:
ok answer is '0'
Test #24:
score: 0
Accepted
time: 386ms
memory: 615000kb
input:
50000 2500 4102 45453 34708 16139 46055 4600 38104 41102 12652 15667 9172 48744 37740 31489 23065 9202 42641 34501 7787 23384 6865 33458 40341 24394 26372 14802 15947 36276 17168 46791 6235 9620 13654 40681 27357 48359 11535 30591 48163 34891 11253 5366 41315 46389 7559 16666 44609 9488 32070 35448 ...
output:
0
result:
ok answer is '0'
Test #25:
score: 0
Accepted
time: 384ms
memory: 614960kb
input:
50000 2500 4765 31823 47392 47212 16690 13390 13886 4988 37389 7491 19944 43362 26775 19065 7291 44609 27418 33124 3071 32379 8783 382 36352 4923 20181 40907 4396 14971 28746 38516 42000 24355 27414 5674 29143 10968 19625 19985 39193 29771 41362 4091 45338 29148 4522 3754 39549 3549 36448 10606 9087...
output:
0
result:
ok answer is '0'
Test #26:
score: 0
Accepted
time: 275ms
memory: 614960kb
input:
50000 25000 27694 17334 36689 31386 31737 11455 45580 24774 10760 22622 38242 46894 7840 25322 5521 12613 26716 22694 25855 25477 10262 35030 44364 20263 32754 25231 12031 41823 11990 23525 42714 4944 2925 21358 13598 43641 11876 15959 32684 33139 19155 32483 16772 19190 24550 37493 41102 8647 43025...
output:
0
result:
ok answer is '0'
Test #27:
score: 0
Accepted
time: 260ms
memory: 614956kb
input:
50000 25000 44016 33666 19414 5385 40981 40283 43975 6878 43709 41524 9656 16710 45770 10732 32635 21865 43523 32271 915 7042 444 48013 36294 3585 49996 11643 30723 25747 31775 48336 45512 2743 44769 47429 8014 41070 34860 12612 36010 5066 17522 17607 30514 20218 36722 6078 41362 29534 15875 819 451...
output:
0
result:
ok answer is '0'
Test #28:
score: 0
Accepted
time: 274ms
memory: 614960kb
input:
50000 25000 18548 21204 2642 29126 38448 36786 49101 3264 21477 17128 37004 32378 18735 11103 30077 21174 13272 30737 40939 35714 47156 25395 42641 37784 14160 13158 2915 21970 15003 30459 6600 25416 32357 21787 17111 40376 46084 22861 26349 22931 2237 32732 39127 44963 42881 28344 40191 14685 19692...
output:
0
result:
ok answer is '0'
Test #29:
score: 0
Accepted
time: 269ms
memory: 615244kb
input:
50000 25000 22121 42962 46051 15480 12670 30302 22927 17242 44174 42743 7178 38964 38129 7628 2635 5306 46715 25681 21768 46091 27793 42640 28882 49382 35390 8446 22138 39030 49880 24709 47386 32262 32593 1504 27202 48926 36461 49843 21448 43765 49673 22056 46947 30717 36240 25518 2203 47976 15589 1...
output:
0
result:
ok answer is '0'
Test #30:
score: 0
Accepted
time: 270ms
memory: 615256kb
input:
50000 25000 47178 27280 8198 29160 42916 17772 3807 9479 28530 40842 14551 22877 22211 42763 32510 20330 8487 29401 26704 17104 5333 13770 47756 20854 19189 15916 29033 16839 6232 23354 40868 42924 34479 17258 46011 14427 17459 2554 15183 1180 48545 19727 3564 8595 25540 36694 30257 44394 44697 2319...
output:
0
result:
ok answer is '0'
Test #31:
score: 0
Accepted
time: 348ms
memory: 614988kb
input:
50000 5000 28664 2202 4603 43800 48905 42109 58 42500 21591 47108 11450 6559 35633 35340 13056 11028 4188 19273 12825 40269 22606 23648 5139 42220 25096 3308 9965 20194 34538 48726 46563 906 9760 46427 33404 38054 38836 39368 13694 34190 35151 10770 22820 46972 12138 14786 45427 21867 14653 11867 35...
output:
0
result:
ok answer is '0'
Test #32:
score: 0
Accepted
time: 360ms
memory: 614976kb
input:
50000 5000 29415 37254 9292 31856 41439 34899 22705 31140 30432 23050 37463 35062 44740 24799 26133 39208 28790 29172 5022 16087 34463 33542 35094 16472 42457 43738 12812 34489 47293 45111 43790 45092 9540 23669 1570 43499 16422 33732 43122 2075 15955 15793 35557 43733 40264 1775 20689 49630 11587 2...
output:
0
result:
ok answer is '0'
Test #33:
score: 0
Accepted
time: 356ms
memory: 614956kb
input:
50000 5000 38880 22972 10057 47774 15305 12835 8303 17916 14134 17253 47251 16436 25464 44971 33072 48580 47147 14940 47850 42030 30418 45836 36064 39346 23684 12724 48715 34149 30366 27796 17909 22444 7986 28074 42026 49066 25787 15821 26491 38515 24089 13199 33267 11781 49712 42488 26609 9586 4299...
output:
0
result:
ok answer is '0'
Test #34:
score: 0
Accepted
time: 360ms
memory: 614960kb
input:
50000 5000 22449 29725 11386 16002 34512 41050 24506 9207 36171 41312 39817 49794 3924 41805 3468 30231 5775 22611 46871 37970 26396 13401 21 32708 35911 34805 2148 22066 32607 26830 19557 31091 35170 26601 35364 26093 47433 5860 26267 23293 27191 3335 42192 45844 28406 5534 12885 44842 30431 11492 ...
output:
0
result:
ok answer is '0'
Test #35:
score: 0
Accepted
time: 370ms
memory: 615044kb
input:
50000 5000 40286 46980 1220 4024 40563 14448 44762 14878 46266 29127 42561 36990 24660 15985 30945 46078 24628 32792 37946 33334 3323 11866 35170 21734 9244 35772 47527 19295 47033 16672 21165 2186 3132 17458 9616 22782 13141 5175 35664 12735 40606 10905 47122 2808 14525 47739 4544 30038 46090 3920 ...
output:
0
result:
ok answer is '0'
Test #36:
score: 0
Accepted
time: 349ms
memory: 615056kb
input:
50000 10000 18902 3060 40220 12119 24070 29001 35075 25657 3771 37564 16283 7897 5711 47444 11653 11978 15679 28838 23910 16563 25241 45894 42485 35925 46940 11284 49773 33624 34936 7510 4265 48370 40939 12246 4558 36443 23492 4458 5694 23282 13256 25146 13642 2296 17563 22633 3740 9031 26848 6931 3...
output:
0
result:
ok answer is '0'
Test #37:
score: 0
Accepted
time: 334ms
memory: 615044kb
input:
50000 10000 28890 38404 18861 30686 18213 41445 22538 14435 23423 39590 34671 37639 10966 35644 10983 43436 10579 3531 19846 25162 13473 1753 9074 18852 7641 26945 5243 39948 35012 39397 267 45511 43576 12311 43901 37209 16809 17730 37526 1327 10080 25165 9888 30527 20594 4332 5487 24449 35328 48519...
output:
0
result:
ok answer is '0'
Test #38:
score: 0
Accepted
time: 349ms
memory: 615044kb
input:
50000 10000 13084 29539 36846 10537 27833 8757 12233 43657 33794 33488 5878 28799 12399 265 45667 37867 43778 17157 8899 13668 25893 15436 13081 38071 33659 29373 30493 45114 49640 21641 46498 30252 18369 22877 20302 46346 36391 12491 32210 42482 45559 36208 33206 1612 7203 33361 11448 2000 21227 40...
output:
0
result:
ok answer is '0'
Test #39:
score: 0
Accepted
time: 338ms
memory: 614964kb
input:
50000 10000 41207 16258 11208 14856 25672 14788 31580 13870 13847 25528 3006 31137 19204 3042 32584 44346 10969 29170 24972 41153 32830 13508 8766 32811 7989 38608 31744 13571 2763 29731 3355 42822 32029 15342 27686 39237 42885 16056 11774 39484 21653 31107 17854 24441 34853 34618 13437 24705 42550 ...
output:
0
result:
ok answer is '0'
Test #40:
score: 0
Accepted
time: 332ms
memory: 614912kb
input:
50000 10000 26385 6067 48691 41467 42371 48310 9723 1887 33619 43522 9733 7239 3157 34429 28791 9562 32532 10563 35546 26754 27612 37214 49558 47654 36787 19422 2273 40175 33143 14739 33271 16408 2390 43807 12640 3669 21482 24542 45168 33177 16047 20648 3363 45840 22903 6356 7243 43423 21890 1311 81...
output:
0
result:
ok answer is '0'
Test #41:
score: 0
Accepted
time: 304ms
memory: 588272kb
input:
50000 15000 18616 42430 45574 2832 10273 18377 22894 2330 32230 317 7292 5218 39883 41433 43080 8380 40500 43945 39436 46440 43990 45247 39265 15644 43954 37515 30503 37756 34402 26875 46685 45319 28669 6118 1145 18155 10344 41816 6283 12053 21307 47664 34731 23168 13156 3819 31102 42849 40112 19597...
output:
0
result:
ok answer is '0'
Test #42:
score: 0
Accepted
time: 306ms
memory: 586244kb
input:
50000 15000 39233 33979 47324 37990 46755 19894 12028 9135 17910 31136 40677 37783 6326 38781 3830 37208 11202 19385 6042 18845 46566 15031 12129 36652 21906 16153 41 28698 3225 24 10748 40316 38711 2443 31242 10970 42714 13807 39391 10871 18495 6086 49178 8810 9548 39802 7624 17164 25289 26049 1796...
output:
0
result:
ok answer is '0'
Test #43:
score: 0
Accepted
time: 301ms
memory: 586280kb
input:
50000 15000 29691 18241 24313 6813 14783 13693 24083 49311 18318 1209 4597 23873 38970 37425 34783 27184 5860 12048 6624 31472 32565 39449 7658 48916 26079 23534 36191 33343 43630 37490 34520 5884 44402 21779 35077 40700 6382 47225 36361 34123 43242 2851 7872 27922 14018 4975 24285 28144 26547 45065...
output:
0
result:
ok answer is '0'
Test #44:
score: 0
Accepted
time: 309ms
memory: 586244kb
input:
50000 15000 43746 21449 23891 47079 14142 9005 49753 12227 2450 7047 48990 7208 28305 41658 27197 7152 46504 21391 25538 7285 36439 36239 73 28722 17878 21516 35289 110 31084 8197 18811 34513 14145 43955 10910 43523 39203 39575 43958 4719 9979 22518 997 19325 12112 25875 19197 37502 13447 8929 20402...
output:
0
result:
ok answer is '0'
Test #45:
score: 0
Accepted
time: 307ms
memory: 586292kb
input:
50000 15000 17833 1797 12006 36219 49285 45707 42551 13845 6509 26036 25696 12839 3163 15772 45820 15465 39953 11961 49613 38022 39310 18544 29426 22640 23535 35802 17735 32509 33596 22536 49749 10022 10061 48529 26442 27811 15735 22162 16535 38867 23517 9257 15512 20452 36043 18781 29399 29032 5867...
output:
0
result:
ok answer is '0'
Test #46:
score: 0
Accepted
time: 266ms
memory: 555568kb
input:
50000 20000 15224 2819 49129 9487 2256 16025 31551 33804 41166 27719 17182 48290 46280 47517 15518 38608 31439 6431 39114 25589 1883 37645 45288 4251 23381 596 41968 45478 26424 41424 40344 8889 15815 31339 9481 1295 37151 280 10135 38984 5787 57 628 22490 39329 11893 33401 6899 14580 42632 21102 16...
output:
0
result:
ok answer is '0'
Test #47:
score: 0
Accepted
time: 276ms
memory: 555524kb
input:
50000 20000 26828 44755 40749 16317 23169 19941 43412 40101 13170 13068 28187 24238 28210 5413 47701 16998 35455 37854 6723 42602 16061 47116 45851 36464 25725 31143 43746 11667 23289 29903 15833 42276 35155 8399 42878 25268 23597 37689 20100 46602 24293 17796 49146 19646 1280 4884 13040 35845 3679 ...
output:
0
result:
ok answer is '0'
Test #48:
score: 0
Accepted
time: 267ms
memory: 557644kb
input:
50000 20000 21982 20304 31150 40865 38636 7336 1642 3112 23239 2146 43189 11272 4517 2188 10445 39138 36339 6489 794 27590 9479 38616 19046 10617 24824 40921 10181 32272 39796 36656 47009 8249 9734 29013 6146 33286 9596 31562 47527 22739 5995 33902 43012 22945 33269 5901 733 37671 33470 47825 21478 ...
output:
0
result:
ok answer is '0'
Test #49:
score: 0
Accepted
time: 273ms
memory: 555588kb
input:
50000 20000 29579 42027 24698 12515 47417 6396 1237 19276 34220 5663 28894 37372 40784 468 49353 15846 11101 27149 34110 46285 17027 17525 110 28826 24942 10825 11714 49893 36192 34177 19498 31825 26370 21992 32898 3456 35004 41106 48088 22350 12857 12719 33629 38874 42448 24027 15395 10861 33867 22...
output:
0
result:
ok answer is '0'
Test #50:
score: 0
Accepted
time: 274ms
memory: 555832kb
input:
50000 20000 28375 2708 49873 21890 275 28159 46939 554 4794 46651 1436 7590 22951 8895 17403 42444 38037 9136 16502 16032 29792 42172 16748 4026 36059 23723 40647 23679 30598 33951 20597 44363 49416 18975 10878 48003 3114 9400 33430 48782 48685 45172 25012 36382 18452 22540 5998 36495 34963 27329 21...
output:
0
result:
ok answer is '0'
Test #51:
score: 0
Accepted
time: 252ms
memory: 614964kb
input:
50000 25000 10559 29037 12737 5500 18273 14847 10188 23326 27809 20417 4465 226 37741 11796 9190 43888 15631 5028 22550 40895 9461 30198 49102 20882 6558 27671 24740 42942 22225 15820 12140 15916 44792 38876 43610 26489 22387 25476 13255 13134 27597 8955 36446 36599 2821 25207 18781 11725 48019 5399...
output:
0
result:
ok answer is '0'
Test #52:
score: 0
Accepted
time: 259ms
memory: 614984kb
input:
50000 25000 44490 4769 13744 9565 44868 16046 47976 6217 16677 10643 3822 30201 4020 565 49196 42072 7338 3211 4959 20792 21347 26586 9209 42480 31098 24447 19425 46932 48627 29211 46362 4580 24715 13526 521 9637 20682 28798 4365 45628 20039 43652 48620 28227 7304 42483 23436 25734 2393 43092 37157 ...
output:
0
result:
ok answer is '0'
Test #53:
score: 0
Accepted
time: 256ms
memory: 614960kb
input:
50000 25000 9035 15421 25267 19800 14732 25940 30319 24607 37207 25732 3533 9124 17012 21606 7725 7390 46374 23041 22153 5913 15499 44373 18511 9323 35410 27241 31710 3716 20819 41603 1768 32004 19142 1881 22378 29090 31258 1629 12865 49186 6006 34387 1306 41697 22349 42989 8046 28460 16666 33763 19...
output:
0
result:
ok answer is '0'
Test #54:
score: 0
Accepted
time: 251ms
memory: 615244kb
input:
50000 25000 43250 6550 13201 39505 7411 15621 37042 9936 40887 31878 42498 46828 38229 38419 22719 16320 13854 43118 6166 2376 28446 1298 28080 46941 19305 26410 337 25572 40267 33759 43007 4300 2235 33118 13961 19039 3879 49669 18679 40331 40746 9830 23956 36863 5753 8796 13932 12246 44402 22367 36...
output:
0
result:
ok answer is '0'
Test #55:
score: 0
Accepted
time: 250ms
memory: 614960kb
input:
50000 25000 984 16409 33035 25983 16661 39761 24998 36555 17568 21053 38242 10451 48918 23908 29851 4420 7074 13125 31557 44167 23207 49738 44968 35668 42983 12795 1769 19823 42103 44372 30318 42235 29437 49645 17094 40528 31274 4874 43407 31281 34213 13360 7209 25326 25167 48268 13731 20991 23206 1...
output:
0
result:
ok answer is '0'
Test #56:
score: 0
Accepted
time: 204ms
memory: 494412kb
input:
50000 30000 47517 19506 49298 1923 8661 29830 32738 48237 43609 10374 33128 29114 39361 841 31706 5006 18685 27828 45651 826 19089 30578 29472 45915 22650 34429 40765 43161 28570 22429 17320 4729 12862 38822 45168 24155 47434 23405 18922 26334 32704 27831 17845 26886 13641 48266 36737 22867 5353 430...
output:
0
result:
ok answer is '0'
Test #57:
score: 0
Accepted
time: 195ms
memory: 494416kb
input:
50000 30000 20248 43055 35472 13608 10286 25626 37207 28522 39515 6952 2500 20638 22709 25891 38434 15061 43670 28155 42875 8555 6835 26357 2295 44399 28918 38622 47889 28390 95 27592 7775 7359 6172 29612 37369 40157 5415 36287 40836 43786 24327 30485 8079 35120 7524 14048 29302 16085 44397 9326 276...
output:
0
result:
ok answer is '0'
Test #58:
score: 0
Accepted
time: 210ms
memory: 494208kb
input:
50000 30000 14183 13973 13183 30855 6148 14821 32543 37214 49314 8001 15137 1812 44827 4535 47868 34340 11382 6928 43565 28304 44104 7378 17104 22326 27961 28493 38353 10224 45567 29406 11834 41172 25040 15175 2745 10976 8133 13856 39663 24060 12095 33365 8079 34652 36806 24182 24504 15894 36527 218...
output:
0
result:
ok answer is '0'
Test #59:
score: 0
Accepted
time: 202ms
memory: 494148kb
input:
50000 30000 16734 11717 11910 29386 11095 3372 8410 15210 48644 33300 10624 38486 34225 43551 22208 26958 26419 15142 17298 13025 30904 34370 9312 8120 48664 2192 1874 18589 7358 29438 31062 39925 29124 11795 25300 8420 19193 34231 709 39104 33656 8079 25635 46931 14160 20877 7203 29086 28533 20880 ...
output:
0
result:
ok answer is '0'
Test #60:
score: 0
Accepted
time: 195ms
memory: 494124kb
input:
50000 30000 49034 20465 39769 17471 38116 13035 37145 9227 45139 27165 6831 29670 12208 23010 39380 6634 35031 40545 44001 593 4162 49735 33235 5246 26372 13401 36889 49617 38426 6691 7461 35430 803 28460 2113 24827 4412 43034 37481 16428 17099 14889 14868 4921 39150 488 1071 42630 46840 8065 32751 ...
output:
0
result:
ok answer is '0'
Test #61:
score: 0
Accepted
time: 182ms
memory: 525132kb
input:
50000 35000 15467 7168 36699 21105 47305 46792 1382 39637 41493 46367 46795 17141 48207 17439 4811 43090 2501 11257 15274 7504 20097 17986 36009 46040 19168 25514 10562 9234 47220 35594 17124 20606 49287 25984 27074 657 24570 14562 3017 25336 38152 4087 14838 40305 3026 2032 31411 36863 42859 47985 ...
output:
0
result:
ok answer is '0'
Test #62:
score: 0
Accepted
time: 196ms
memory: 526916kb
input:
50000 35000 19690 14537 2671 47618 5620 16318 22087 42379 6129 20296 8454 39890 34112 40551 7669 22900 20522 37482 41289 2020 9977 46733 33745 49471 6925 36783 34819 13571 20339 37945 5384 31953 24099 40252 14144 37875 43671 20756 467 6164 38981 31095 40 49810 22722 8758 10912 10957 41562 14973 3285...
output:
0
result:
ok answer is '0'
Test #63:
score: 0
Accepted
time: 201ms
memory: 524848kb
input:
50000 35000 12523 43879 6553 12695 231 12621 22423 7160 44061 28450 32674 7981 42258 7898 12795 34377 47966 24626 40288 24756 48494 32740 30197 13863 40204 39945 34537 21882 10340 3024 1331 4890 3152 23155 41892 47957 34442 2967 7641 49257 19300 48818 34883 37647 39716 39676 36642 14984 48578 34198 ...
output:
0
result:
ok answer is '0'
Test #64:
score: 0
Accepted
time: 183ms
memory: 524944kb
input:
50000 35000 30744 38190 2146 14555 4493 26945 45988 11695 36148 37811 24908 44821 19154 46579 12060 37584 24250 31571 39835 28654 15502 31888 1699 15012 28778 39881 33511 14953 18403 24274 29870 29791 7648 12278 23249 8 8720 33705 33016 31774 44222 3052 6779 14568 27235 29229 7053 24720 15399 27279 ...
output:
0
result:
ok answer is '0'
Test #65:
score: 0
Accepted
time: 206ms
memory: 524872kb
input:
50000 35000 34777 7398 9727 317 5553 15041 39979 31719 40652 16410 28743 27308 16322 1468 46014 42463 10240 11195 37802 27679 47760 31135 33009 29483 32132 26938 15398 14628 47013 14307 5467 36865 41273 14649 13428 27003 13064 8921 22032 24370 42846 28720 48197 32873 38881 6737 12139 43909 15366 334...
output:
0
result:
ok answer is '0'
Test #66:
score: 0
Accepted
time: 170ms
memory: 555652kb
input:
50000 40000 14610 48009 33609 26370 191 33700 26413 35254 2954 22644 22133 49851 24790 37906 11911 31836 45202 20437 12084 9060 31521 11124 28360 5183 37013 11317 11683 38269 7248 37292 108 16326 18971 6631 18638 17161 2358 11170 13179 37655 28805 24658 3380 47289 7249 10108 19788 46290 12926 39841 ...
output:
0
result:
ok answer is '0'
Test #67:
score: 0
Accepted
time: 194ms
memory: 555568kb
input:
50000 40000 4042 25262 10112 20373 31221 1567 34266 44028 41718 42532 1673 21112 31056 43515 189 457 36223 32896 48605 10937 37584 32447 12317 4483 48380 31248 26836 7856 10409 7117 41880 7051 13997 25727 29743 38249 18281 18295 29844 39492 9101 7239 11276 13154 18188 31803 48736 19614 34581 35031 4...
output:
0
result:
ok answer is '0'
Test #68:
score: 0
Accepted
time: 168ms
memory: 555852kb
input:
50000 40000 32807 48802 478 2857 35242 5095 6773 30713 42193 34322 4052 39027 33290 33247 23253 8755 25220 23555 4072 18161 38905 28466 8487 37568 46778 931 30563 22673 18733 10538 24007 5980 32899 26509 34878 9397 545 7886 36463 14127 7990 26166 4041 19205 18569 40915 43528 18499 18044 42522 21286 ...
output:
0
result:
ok answer is '0'
Test #69:
score: 0
Accepted
time: 171ms
memory: 555592kb
input:
50000 40000 19200 33402 19587 34336 38822 19428 24632 1202 8110 38381 24444 20324 741 8716 37107 7403 39229 25087 34446 47132 29084 44569 32579 10074 17322 45608 16147 45214 1329 2288 45533 17363 41475 28749 41431 15629 22042 13355 33499 49645 21746 34576 972 15919 2511 19176 36421 29569 18374 11012...
output:
0
result:
ok answer is '0'
Test #70:
score: 0
Accepted
time: 196ms
memory: 555564kb
input:
50000 40000 22722 16995 43221 3698 18420 5730 41051 23995 4584 10320 28167 18143 47214 33823 19702 46790 46448 41429 48051 2204 32384 24641 32772 6972 32472 30682 19729 25269 34762 46999 39336 15905 20902 20384 31163 22539 20827 45787 34547 45303 38718 35971 45339 9130 26782 16320 48230 27778 6436 1...
output:
0
result:
ok answer is '0'
Test #71:
score: 0
Accepted
time: 152ms
memory: 586312kb
input:
50000 45000 13372 7743 36023 32973 12795 12256 30968 46703 9823 34569 49180 49027 24371 46827 13491 45685 32978 45480 18999 31502 12310 15508 44953 18419 22491 17047 19374 6638 39882 44641 49434 26667 36389 24324 43594 22454 7238 39458 22048 16058 26923 26260 46345 49251 42813 54 28448 42222 13631 2...
output:
0
result:
ok answer is '0'
Test #72:
score: 0
Accepted
time: 143ms
memory: 586292kb
input:
50000 45000 20871 27733 24044 20457 43103 321 23684 2054 28695 38675 13003 13547 22322 30087 33001 10741 17657 10165 39891 10224 34324 18878 1729 15233 18780 27472 49275 39930 32454 21641 19974 10045 23933 15631 33750 47112 48982 43260 29094 1496 26340 33858 30214 23636 38186 31811 32553 35711 5446 ...
output:
0
result:
ok answer is '0'
Test #73:
score: 0
Accepted
time: 172ms
memory: 586540kb
input:
50000 45000 6559 34900 32496 3755 32069 24466 49669 12139 44265 23195 24446 162 28731 19465 23916 10867 44685 10198 6248 26171 35694 41686 18966 47653 292 19038 42625 49932 6801 22501 41962 27341 12964 42728 43847 48776 46623 47619 4597 4222 4975 19403 1673 33968 43855 35749 27643 46696 21230 4246 2...
output:
0
result:
ok answer is '0'
Test #74:
score: 0
Accepted
time: 159ms
memory: 586572kb
input:
50000 45000 38473 34134 32170 17554 18325 19611 36717 612 4626 12035 46222 15559 6435 43686 22332 17195 47044 34974 2806 39954 34098 17812 26345 46009 29114 43204 3855 10556 25918 47157 12317 38689 5067 21054 23464 2127 33 27688 38249 24414 25309 2921 40669 47960 14549 43079 45390 26085 473 24721 43...
output:
0
result:
ok answer is '0'
Test #75:
score: 0
Accepted
time: 152ms
memory: 586240kb
input:
50000 45000 46024 3739 3874 4533 21493 33661 21559 42997 45063 6762 35233 36032 30382 40031 39260 11738 12044 40305 20885 26222 5333 577 48206 3650 37722 33070 34110 10834 13344 34643 2328 40813 14770 12204 31836 5978 4192 39833 4362 13748 3413 6828 26673 42766 1612 4532 42992 28947 3284 2073 21152 ...
output:
0
result:
ok answer is '0'
Test #76:
score: 0
Accepted
time: 141ms
memory: 615240kb
input:
50000 50000 13487 160 28978 29716 47558 32687 43882 25311 28085 1537 32861 27383 5711 49131 27463 14601 34049 5678 27439 5257 38756 47736 4092 16273 49837 4418 48386 29843 7693 6223 48948 46972 20865 48553 6284 3189 34675 25428 37029 41188 2026 8313 27259 41830 9312 19213 24829 12013 38216 34245 220...
output:
0
result:
ok answer is '0'
Test #77:
score: 0
Accepted
time: 123ms
memory: 615228kb
input:
50000 50000 23800 48119 25693 32321 493 32282 17763 7880 2999 45198 46167 3942 47153 21345 35799 35290 35308 36704 5812 15155 118 40243 34555 41805 10285 29021 17001 6226 42522 940 18610 47030 42493 12 4985 3195 22434 8893 29187 48770 8814 15466 4370 12212 46912 48847 22928 17822 31908 4736 49497 11...
output:
0
result:
ok answer is '0'
Test #78:
score: 0
Accepted
time: 138ms
memory: 614952kb
input:
50000 50000 31833 39756 19646 36126 3377 1254 192 6618 14427 2788 1933 20558 38488 19096 13468 17034 37438 20204 2959 23467 8787 13110 27991 169 25515 8566 1976 20470 9086 18250 11246 49590 40009 32456 31747 29405 42738 5267 31002 12252 10691 7380 24695 15286 3459 19596 6999 9440 4041 46949 36472 43...
output:
0
result:
ok answer is '0'
Test #79:
score: 0
Accepted
time: 154ms
memory: 614952kb
input:
50000 50000 27342 6442 34260 3453 26829 25574 4986 39559 23911 32364 32959 47602 10694 3115 32227 22579 6595 26595 15524 1126 22497 6279 35870 7909 11237 39953 45448 46320 40034 22236 24405 43544 48793 957 45872 18244 38115 17425 49375 2592 21494 11215 29228 19456 27670 36499 24973 22590 29852 14822...
output:
0
result:
ok answer is '0'
Test #80:
score: 0
Accepted
time: 147ms
memory: 614976kb
input:
50000 50000 37667 29531 15083 22868 39773 45392 16998 17110 34605 20942 22293 26129 21570 29584 24447 27642 5390 32704 38245 20468 14674 27645 37283 9807 5945 1516 24777 40833 19449 13994 7086 5852 9821 45325 48100 4044 34720 34522 11157 39771 24299 2666 5151 3471 36425 48838 20078 4267 15530 7203 1...
output:
0
result:
ok answer is '0'
Test #81:
score: 0
Accepted
time: 133ms
memory: 614852kb
input:
50000 50000 10885 9991 47220 36746 9645 41323 48516 31780 19592 11122 41632 1923 32017 22169 39619 25974 31396 14185 8519 14164 36030 31436 49231 24562 18367 34821 31522 41461 20846 31549 41091 25394 13388 24564 22997 25084 2900 30802 19626 9341 32660 3722 45060 36558 41086 4397 641 18905 15181 1057...
output:
0
result:
ok answer is '0'
Test #82:
score: 0
Accepted
time: 361ms
memory: 614984kb
input:
50000 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 1...
output:
1200524500
result:
ok answer is '1200524500'
Test #83:
score: 0
Accepted
time: 391ms
memory: 615052kb
input:
50000 1000 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 ...
output:
864060001
result:
ok answer is '864060001'
Test #84:
score: 0
Accepted
time: 363ms
memory: 614960kb
input:
50000 1000 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82 85 88 91 94 97 100 103 106 109 112 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226 229 232 235 238 241 2...
output:
736412668
result:
ok answer is '736412668'
Test #85:
score: 0
Accepted
time: 379ms
memory: 615248kb
input:
50000 1000 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313 3...
output:
661379503
result:
ok answer is '661379503'
Test #86:
score: 0
Accepted
time: 379ms
memory: 615244kb
input:
50000 1000 1 6 11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96 101 106 111 116 121 126 131 136 141 146 151 156 161 166 171 176 181 186 191 196 201 206 211 216 221 226 231 236 241 246 251 256 261 266 271 276 281 286 291 296 301 306 311 316 321 326 331 336 341 346 351 356 361 366 371 376 381 386...
output:
607663504
result:
ok answer is '607663504'
Test #87:
score: 0
Accepted
time: 375ms
memory: 615248kb
input:
50000 1000 1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97 103 109 115 121 127 133 139 145 151 157 163 169 175 181 187 193 199 205 211 217 223 229 235 241 247 253 259 265 271 277 283 289 295 301 307 313 319 325 331 337 343 349 355 361 367 373 379 385 391 397 403 409 415 421 427 433 439 445 451 457 ...
output:
564807337
result:
ok answer is '564807337'
Test #88:
score: 0
Accepted
time: 366ms
memory: 615248kb
input:
50000 1000 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 113 120 127 134 141 148 155 162 169 176 183 190 197 204 211 218 225 232 239 246 253 260 267 274 281 288 295 302 309 316 323 330 337 344 351 358 365 372 379 386 393 400 407 414 421 428 435 442 449 456 463 470 477 484 491 498 505 512 519 526 53...
output:
528497290
result:
ok answer is '528497290'
Test #89:
score: 0
Accepted
time: 388ms
memory: 614956kb
input:
50000 1000 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 137 145 153 161 169 177 185 193 201 209 217 225 233 241 249 257 265 273 281 289 297 305 313 321 329 337 345 353 361 369 377 385 393 401 409 417 425 433 441 449 457 465 473 481 489 497 505 513 521 529 537 545 553 561 569 577 585 593 601 ...
output:
496387507
result:
ok answer is '496387507'
Test #90:
score: 0
Accepted
time: 374ms
memory: 614980kb
input:
50000 1000 1 10 19 28 37 46 55 64 73 82 91 100 109 118 127 136 145 154 163 172 181 190 199 208 217 226 235 244 253 262 271 280 289 298 307 316 325 334 343 352 361 370 379 388 397 406 415 424 433 442 451 460 469 478 487 496 505 514 523 532 541 550 559 568 577 586 595 604 613 622 631 640 649 658 667 6...
output:
467120728
result:
ok answer is '467120728'
Test #91:
score: 0
Accepted
time: 352ms
memory: 615052kb
input:
50000 1000 1 11 21 31 41 51 61 71 81 91 101 111 121 131 141 151 161 171 181 191 201 211 221 231 241 251 261 271 281 291 301 311 321 331 341 351 361 371 381 391 401 411 421 431 441 451 461 471 481 491 501 511 521 531 541 551 561 571 581 591 601 611 621 631 641 651 661 671 681 691 701 711 721 731 741 ...
output:
440326009
result:
ok answer is '440326009'
Test #92:
score: 0
Accepted
time: 352ms
memory: 615044kb
input:
50000 1000 1 49998 49995 49992 49989 49986 49983 49980 49977 49974 49971 49968 49965 49962 49959 49956 49953 49950 49947 49944 49941 49938 49935 49932 49929 49926 49923 49920 49917 49914 49911 49908 49905 49902 49899 49896 49893 49890 49887 49884 49881 49878 49875 49872 49869 49866 49863 49860 49857...
output:
368205836
result:
ok answer is '368205836'
Test #93:
score: 0
Accepted
time: 369ms
memory: 614980kb
input:
50000 1000 1 49999 49997 49995 49993 49991 49989 49987 49985 49983 49981 49979 49977 49975 49973 49971 49969 49967 49965 49963 49961 49959 49957 49955 49953 49951 49949 49947 49945 49943 49941 49939 49937 49935 49933 49931 49929 49927 49925 49923 49921 49919 49917 49915 49913 49911 49909 49907 49905...
output:
288036001
result:
ok answer is '288036001'
Test #94:
score: 0
Accepted
time: 356ms
memory: 614956kb
input:
50000 1000 1 50000 49999 49998 49997 49996 49995 49994 49993 49992 49991 49990 49989 49988 49987 49986 49985 49984 49983 49982 49981 49980 49979 49978 49977 49976 49975 49974 49973 49972 49971 49970 49969 49968 49967 49966 49965 49964 49963 49962 49961 49960 49959 49958 49957 49956 49955 49954 49953...
output:
0
result:
ok answer is '0'
Test #95:
score: 0
Accepted
time: 360ms
memory: 614964kb
input:
50000 1000 1 31 61 91 121 151 181 211 241 271 301 331 361 391 421 451 481 511 541 571 601 631 661 691 721 751 781 811 841 871 901 931 961 991 1021 1051 1081 1111 1141 1171 1201 1231 1261 1291 1321 1351 1381 1411 1441 1471 1501 1531 1561 1591 1621 1651 1681 1711 1741 1771 1801 1831 1861 1891 1921 195...
output:
103952689
result:
ok answer is '103952689'
Test #96:
score: 0
Accepted
time: 326ms
memory: 614960kb
input:
50000 10 1 31 61 91 121 151 181 211 241 271 301 331 361 391 421 451 481 511 541 571 601 631 661 691 721 751 781 811 841 871 901 931 961 991 1021 1051 1081 1111 1141 1171 1201 1231 1261 1291 1321 1351 1381 1411 1441 1471 1501 1531 1561 1591 1621 1651 1681 1711 1741 1771 1801 1831 1861 1891 1921 1951 ...
output:
638974924
result:
ok answer is '638974924'
Test #97:
score: 0
Accepted
time: 337ms
memory: 614916kb
input:
50000 1000 1 301 601 901 1201 1501 1801 2101 2401 2701 3001 3301 3601 3901 4201 4501 4801 5101 5401 5701 6001 6301 6601 6901 7201 7501 7801 8101 8401 8701 9001 9301 9601 9901 10201 10501 10801 11101 11401 11701 12001 12301 12601 12901 13201 13501 13801 14101 14401 14701 15001 15301 15601 15901 16201...
output:
2376598
result:
ok answer is '2376598'
Test #98:
score: 0
Accepted
time: 339ms
memory: 615244kb
input:
50000 10 1 301 601 901 1201 1501 1801 2101 2401 2701 3001 3301 3601 3901 4201 4501 4801 5101 5401 5701 6001 6301 6601 6901 7201 7501 7801 8101 8401 8701 9001 9301 9601 9901 10201 10501 10801 11101 11401 11701 12001 12301 12601 12901 13201 13501 13801 14101 14401 14701 15001 15301 15601 15901 16201 1...
output:
562609159
result:
ok answer is '562609159'
Test #99:
score: 0
Accepted
time: 347ms
memory: 614988kb
input:
50000 1000 1 3001 6001 9001 12001 15001 18001 21001 24001 27001 30001 33001 36001 39001 42001 45001 48001 1001 4001 7001 10001 13001 16001 19001 22001 25001 28001 31001 34001 37001 40001 43001 46001 49001 2001 5001 8001 11001 14001 17001 20001 23001 26001 29001 32001 35001 38001 41001 44001 47001 2 ...
output:
23986480
result:
ok answer is '23986480'
Test #100:
score: 0
Accepted
time: 339ms
memory: 614960kb
input:
50000 10 1 3001 6001 9001 12001 15001 18001 21001 24001 27001 30001 33001 36001 39001 42001 45001 48001 1001 4001 7001 10001 13001 16001 19001 22001 25001 28001 31001 34001 37001 40001 43001 46001 49001 2001 5001 8001 11001 14001 17001 20001 23001 26001 29001 32001 35001 38001 41001 44001 47001 2 30...
output:
165004009
result:
ok answer is '165004009'
Test #101:
score: 0
Accepted
time: 364ms
memory: 614960kb
input:
50000 1000 1 30001 10001 40001 20001 2 30002 10002 40002 20002 3 30003 10003 40003 20003 4 30004 10004 40004 20004 5 30005 10005 40005 20005 6 30006 10006 40006 20006 7 30007 10007 40007 20007 8 30008 10008 40008 20008 9 30009 10009 40009 20009 10 30010 10010 40010 20010 11 30011 10011 40011 20011 1...
output:
240085300
result:
ok answer is '240085300'
Test #102:
score: 0
Accepted
time: 348ms
memory: 614960kb
input:
50000 10 1 30001 10001 40001 20001 2 30002 10002 40002 20002 3 30003 10003 40003 20003 4 30004 10004 40004 20004 5 30005 10005 40005 20005 6 30006 10006 40006 20006 7 30007 10007 40007 20007 8 30008 10008 40008 20008 9 30009 10009 40009 20009 10 30010 10010 40010 20010 11 30011 10011 40011 20011 12 ...
output:
249885013
result:
ok answer is '249885013'
Test #103:
score: 0
Accepted
time: 194ms
memory: 615244kb
input:
50000 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...
output:
1249975000
result:
ok answer is '1249975000'
Test #104:
score: 0
Accepted
time: 264ms
memory: 614980kb
input:
50000 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...
output:
1249925001
result:
ok answer is '1249925001'
Test #105:
score: 0
Accepted
time: 204ms
memory: 614964kb
input:
50000 1 1 50000 49999 49998 49997 49996 49995 49994 49993 49992 49991 49990 49989 49988 49987 49986 49985 49984 49983 49982 49981 49980 49979 49978 49977 49976 49975 49974 49973 49972 49971 49970 49969 49968 49967 49966 49965 49964 49963 49962 49961 49960 49959 49958 49957 49956 49955 49954 49953 49...
output:
49999
result:
ok answer is '49999'
Test #106:
score: 0
Accepted
time: 271ms
memory: 614988kb
input:
50000 2 1 50000 49999 49998 49997 49996 49995 49994 49993 49992 49991 49990 49989 49988 49987 49986 49985 49984 49983 49982 49981 49980 49979 49978 49977 49976 49975 49974 49973 49972 49971 49970 49969 49968 49967 49966 49965 49964 49963 49962 49961 49960 49959 49958 49957 49956 49955 49954 49953 49...
output:
0
result:
ok answer is '0'
Test #107:
score: 0
Accepted
time: 197ms
memory: 614980kb
input:
50000 1 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
output:
937487500
result:
ok answer is '937487500'
Test #108:
score: 0
Accepted
time: 269ms
memory: 614984kb
input:
50000 2 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
output:
937412502
result:
ok answer is '937412502'
Test #109:
score: 0
Accepted
time: 211ms
memory: 614984kb
input:
50000 1 1 49999 49997 49995 49993 49991 49989 49987 49985 49983 49981 49979 49977 49975 49973 49971 49969 49967 49965 49963 49961 49959 49957 49955 49953 49951 49949 49947 49945 49943 49941 49939 49937 49935 49933 49931 49929 49927 49925 49923 49921 49919 49917 49915 49913 49911 49909 49907 49905 49...
output:
312562498
result:
ok answer is '312562498'
Test #110:
score: 0
Accepted
time: 271ms
memory: 614964kb
input:
50000 2 1 49999 49997 49995 49993 49991 49989 49987 49985 49983 49981 49979 49977 49975 49973 49971 49969 49967 49965 49963 49961 49959 49957 49955 49953 49951 49949 49947 49945 49943 49941 49939 49937 49935 49933 49931 49929 49927 49925 49923 49921 49919 49917 49915 49913 49911 49909 49907 49905 49...
output:
312487500
result:
ok answer is '312487500'
Test #111:
score: 0
Accepted
time: 196ms
memory: 614956kb
input:
50000 1 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82 85 88 91 94 97 100 103 106 109 112 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226 229 232 235 238 241 244 ...
output:
833316667
result:
ok answer is '833316667'
Test #112:
score: 0
Accepted
time: 257ms
memory: 614980kb
input:
50000 2 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82 85 88 91 94 97 100 103 106 109 112 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226 229 232 235 238 241 244 ...
output:
833216672
result:
ok answer is '833216672'
Test #113:
score: 0
Accepted
time: 194ms
memory: 614956kb
input:
50000 1 1 49998 49995 49992 49989 49986 49983 49980 49977 49974 49971 49968 49965 49962 49959 49956 49953 49950 49947 49944 49941 49938 49935 49932 49929 49926 49923 49920 49917 49914 49911 49908 49905 49902 49899 49896 49893 49890 49887 49884 49881 49878 49875 49872 49869 49866 49863 49860 49857 49...
output:
416708332
result:
ok answer is '416708332'
Test #114:
score: 0
Accepted
time: 262ms
memory: 615216kb
input:
50000 2 1 49998 49995 49992 49989 49986 49983 49980 49977 49974 49971 49968 49965 49962 49959 49956 49953 49950 49947 49944 49941 49938 49935 49932 49929 49926 49923 49920 49917 49914 49911 49908 49905 49902 49899 49896 49893 49890 49887 49884 49881 49878 49875 49872 49869 49866 49863 49860 49857 49...
output:
416608337
result:
ok answer is '416608337'
Test #115:
score: 0
Accepted
time: 187ms
memory: 614984kb
input:
50000 1 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313 317 ...
output:
781262500
result:
ok answer is '781262500'
Test #116:
score: 0
Accepted
time: 264ms
memory: 614984kb
input:
50000 2 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313 317 ...
output:
781137507
result:
ok answer is '781137507'
Test #117:
score: 0
Accepted
time: 200ms
memory: 614980kb
input:
50000 1 1 49997 49993 49989 49985 49981 49977 49973 49969 49965 49961 49957 49953 49949 49945 49941 49937 49933 49929 49925 49921 49917 49913 49909 49905 49901 49897 49893 49889 49885 49881 49877 49873 49869 49865 49861 49857 49853 49849 49845 49841 49837 49833 49829 49825 49821 49817 49813 49809 49...
output:
468837496
result:
ok answer is '468837496'
Test #118:
score: 0
Accepted
time: 264ms
memory: 614984kb
input:
50000 2 1 49997 49993 49989 49985 49981 49977 49973 49969 49965 49961 49957 49953 49949 49945 49941 49937 49933 49929 49925 49921 49917 49913 49909 49905 49901 49897 49893 49889 49885 49881 49877 49873 49869 49865 49861 49857 49853 49849 49845 49841 49837 49833 49829 49825 49821 49817 49813 49809 49...
output:
468712503
result:
ok answer is '468712503'
Test #119:
score: 0
Accepted
time: 188ms
memory: 615216kb
input:
50000 1 1 6 11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96 101 106 111 116 121 126 131 136 141 146 151 156 161 166 171 176 181 186 191 196 201 206 211 216 221 226 231 236 241 246 251 256 261 266 271 276 281 286 291 296 301 306 311 316 321 326 331 336 341 346 351 356 361 366 371 376 381 386 39...
output:
750025000
result:
ok answer is '750025000'
Test #120:
score: 0
Accepted
time: 277ms
memory: 614964kb
input:
50000 2 1 6 11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96 101 106 111 116 121 126 131 136 141 146 151 156 161 166 171 176 181 186 191 196 201 206 211 216 221 226 231 236 241 246 251 256 261 266 271 276 281 286 291 296 301 306 311 316 321 326 331 336 341 346 351 356 361 366 371 376 381 386 39...
output:
749875011
result:
ok answer is '749875011'
Test #121:
score: 0
Accepted
time: 205ms
memory: 614984kb
input:
50000 1 1 49996 49991 49986 49981 49976 49971 49966 49961 49956 49951 49946 49941 49936 49931 49926 49921 49916 49911 49906 49901 49896 49891 49886 49881 49876 49871 49866 49861 49856 49851 49846 49841 49836 49831 49826 49821 49816 49811 49806 49801 49796 49791 49786 49781 49776 49771 49766 49761 49...
output:
500099995
result:
ok answer is '500099995'
Test #122:
score: 0
Accepted
time: 269ms
memory: 614956kb
input:
50000 2 1 49996 49991 49986 49981 49976 49971 49966 49961 49956 49951 49946 49941 49936 49931 49926 49921 49916 49911 49906 49901 49896 49891 49886 49881 49876 49871 49866 49861 49856 49851 49846 49841 49836 49831 49826 49821 49816 49811 49806 49801 49796 49791 49786 49781 49776 49771 49766 49761 49...
output:
499950006
result:
ok answer is '499950006'
Extra Test:
score: 0
Extra Test Passed