QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#869516 | #9685. nim 游戏 | nullptr_qwq | 46 | 190ms | 10128kb | C++14 | 2.6kb | 2025-01-25 10:41:24 | 2025-01-25 10:41:25 |
Judging History
你现在查看的是最新测评结果
- [2025-01-27 09:19:35]
- hack成功,自动添加数据
- (/hack/1490)
- [2025-01-27 08:19:11]
- hack成功,自动添加数据
- (/hack/1488)
- [2025-01-26 18:55:44]
- hack成功,自动添加数据
- (/hack/1475)
- [2025-01-25 10:41:24]
- 提交
answer
// Problem: T486367 【模拟#4】故障机器人
// Contest: Luogu
// URL: https://www.luogu.com.cn/problem/T486367
// Memory Limit: 512 MB
// Time Limit: 1000 ms
// Author: nullptr_qwq
//
// Powered by CP Editor (https://cpeditor.org)
// 私は猫です
#include<bits/stdc++.h>
#define ull unsigned long long
#define ll long long
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define inf 1000000000
#define infll 1000000000000000000ll
#define pii pair<int,int>
#define rep(i,a,b,c) for(int i=(a);i<=(b);i+=(c))
#define per(i,a,b,c) for(int i=(a);i>=(b);i-=(c))
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define dF(i,a,b) for(int i=(a);i>=(b);i--)
#define cmh(sjy) while(sjy--)
#define lowbit(x) (x&(-x))
#define HH printf("\n")
#define eb emplace_back
#define poly vector<int>
using namespace std;
ll read(){
ll x=0,f=1;char c=getchar();
while(c<'0'||c>'9'){if(c=='-') f=-1;c=getchar();}
while(c>='0'&&c<='9') x=(x<<3)+(x<<1)+(c^48),c=getchar();
return x*f;
}
const int mod=998244353,maxn=1000005;
inline void chkmax(int &x,const int y){ x=max(x,y); }
inline void chkmin(int &x,const int y){ x=min(x,y); }
inline void chkmax(ll &x,const ll y){ x=max(x,y); }
inline void chkmin(ll &x,const ll y){ x=min(x,y); }
ll a[maxn];
int n,vis[maxn];
void solve(){
n=read(),read();
F(i,1,n)a[i]=read(),vis[i]=0;
ll Xorsum=0;
F(i,1,n)Xorsum^=a[i];
if(!Xorsum)return puts("0"),puts("0"),void();
vector<ll>vec;
function<ll(int,ll)>upper=[&](int x,ll y){
return (1ll<<x)-(((1ll<<x)-1)&y);
};
dF(i,60,0){
ll mn=infll,sec=infll;
int p=-1,q=-1;
F(j,1,n)if(!vis[j]&&!((a[j]>>i)&1)){
const ll val=upper(i,a[j]);// let a[j]_i=1,a[j]_{>i}=0
if(val<mn)q=p,sec=mn,p=j,mn=val;
else if(val<sec)q=j,sec=val;
}
if(~p)vis[p]=1,vec.push_back(a[p]);
if(~q)vis[q]=1,vec.push_back(a[q]);
}
const int siz=vec.size();
function<ll(int)>calc=[&](int x){
ll res=0,cur=Xorsum;
vector<ll>f=vec;
function<int(int)>oper=[&](int t){
int p=-1;
ll mn=infll;
F(i,0,siz-1)if(!((f[i]>>t)&1)){
const ll val=upper(t,f[i]);
if(val<mn)p=i,mn=val;
}
if(p<0)return 0;
res+=mn,cur^=(f[p]^(1ll<<t));
f[p]^=(((1ll<<t)-1)&f[p])^(1ll<<t);
return 1;
};
if(!((cur>>x)&1)){
if(!oper(x))return infll;
if(!oper(x))return infll;
}
else if(!oper(x))return infll;
dF(i,x-1,0)if(((cur>>i)&1)&&!oper(i))return infll;
return res;
};
ll ans=infll;
dF(i,60,0){
chkmin(ans,calc(i));
if((Xorsum>>i)&1)break;
}
cout<<ans<<'\n'; puts("0");
}
signed main(){
read(); int sjy=read();
cmh(sjy) solve();
}
详细
Subtask #1:
score: 2
Acceptable Answer
Test #1:
score: 2
Acceptable Answer
time: 26ms
memory: 5708kb
input:
1 10000 2 1 324097321 555675086 2 1 304655177 991244276 2 1 9980291 383616352 2 1 1071036550 795625380 2 1 682098056 68370721 2 1 969101726 685975156 2 1 973896269 354857775 2 1 196188000 606494155 2 1 754416123 467588829 2 1 495704303 558090120 2 1 618002000 491488050 2 1 741575237 9937018 2 1 1002...
output:
231577765 0 686589099 0 373636061 0 275411170 0 613727335 0 283126570 0 619038494 0 410306155 0 286827294 0 62385817 0 126513950 0 731638219 0 130065995 0 295114692 0 301034148 0 338094653 0 290055064 0 616102407 0 683296497 0 58868131 0 408003947 0 892535230 0 212031631 0 386722635 0 655774471 0 55...
result:
points 0.5 right answer but not right solutions at 10000th solution
Subtask #2:
score: 6
Acceptable Answer
Test #2:
score: 6
Acceptable Answer
time: 1ms
memory: 5704kb
input:
2 5 5 2000 0 13 3 4 10 5 2000 0 3 9 1 11 5 2000 0 13 7 3 5 5 2000 0 1 13 9 2 5 2000 0 8 14 7 13
output:
0 0 0 0 2 0 3 0 2 0
result:
points 0.5 right answer but not right solutions at 5th solution
Test #3:
score: 6
Acceptable Answer
time: 0ms
memory: 5704kb
input:
2 5 5 2000 0 4 14 5 7 5 2000 0 2 15 0 12 5 2000 0 1 14 0 5 5 2000 0 13 4 12 3 5 2000 0 10 10 1 11
output:
6 0 1 0 8 0 2 0 10 0
result:
points 0.5 right answer but not right solutions at 5th solution
Test #4:
score: 6
Acceptable Answer
time: 0ms
memory: 5712kb
input:
2 5 5 2000 0 6 15 10 1 5 2000 0 15 0 13 10 5 2000 0 5 7 5 1 5 2000 0 13 3 2 15 5 2000 0 2 4 7 0
output:
2 0 8 0 4 0 1 0 1 0
result:
points 0.5 right answer but not right solutions at 5th solution
Subtask #3:
score: 6
Acceptable Answer
Dependency #2:
50%
Acceptable Answer
Test #5:
score: 6
Acceptable Answer
time: 0ms
memory: 5652kb
input:
3 5 6 2000 0 45 517 811 107 132 6 2000 0 382 576 805 419 579 6 2000 0 379 809 441 331 67 6 2000 0 565 776 959 852 383 6 2000 0 613 383 829 47 441
output:
146 0 179 0 267 0 27 0 197 0
result:
points 0.5 right answer but not right solutions at 5th solution
Test #6:
score: 6
Acceptable Answer
time: 0ms
memory: 5704kb
input:
3 5 6 2000 0 75 173 555 637 905 6 2000 0 934 118 906 367 728 6 2000 0 244 321 598 625 469 6 2000 0 573 489 24 480 459 6 2000 0 424 356 750 623 871
output:
557 0 195 0 69 0 33 0 204 0
result:
points 0.5 right answer but not right solutions at 5th solution
Test #7:
score: 6
Acceptable Answer
time: 0ms
memory: 5712kb
input:
3 5 6 2000 0 886 972 226 813 407 6 2000 0 219 190 742 101 572 6 2000 0 590 423 516 1017 46 6 2000 0 388 807 207 205 647 6 2000 0 408 180 238 300 694
output:
176 0 36 0 466 0 24 0 156 0
result:
points 0.5 right answer but not right solutions at 5th solution
Subtask #4:
score: 6
Acceptable Answer
Test #8:
score: 6
Acceptable Answer
time: 27ms
memory: 6092kb
input:
4 257 100000 100 32768 65536 262144 32768 8388608 1048576 4 67108864 16384 32768 262144 8192 512 134217728 65536 4194304 262144 67108864 1024 262144 64 32 65536 2097152 268435456 1 2048 4194304 16777216 8 16384 2 2048 16777216 268435456 262144 1048576 8388608 16 268435456 2 128 4194304 262144 32768 ...
output:
303389274 0 1 0 188156 0 5 0 7388192 0 1044482 0 483 0 37979676 0 2897896 0 12592895 0 96 0 124 0 10447 0 4 0 6321 0 35 0 12582912 0 112 0 1163266 0 0 0 4730 0 276 0 80 0 66558 0 1957856 0 9310311 0 2893824 0 14 0 332222 0 3334016 0 3731840 0 1002 0 40994 0 58 0 6291456 0 1187069 0 124 0 2 0 260192 ...
result:
points 0.5 right answer but not right solutions at 257th solution
Test #9:
score: 6
Acceptable Answer
time: 28ms
memory: 6096kb
input:
4 266 100000 100 134217728 524288 8388608 4 8 8388608 33554432 4 536870912 4 16 8 33554432 33554432 256 65536 8 16 64 8 256 2048 268435456 256 8192 2 1024 65536 32 2048 134217728 8 1048576 8 16777216 33554432 1024 33554432 131072 16 2 33554432 8192 512 4194304 2048 268435456 256 536870912 16777216 1...
output:
269988539 0 128 0 2111 0 24648843 0 38738 0 771 0 522240 0 75467712 0 0 0 252 0 54475779 0 624 0 4812 0 534832868 0 774 0 5676058 0 100337 0 1026 0 328145 0 276328320 0 18973684 0 171452 0 520232944 0 1354336 0 2017 0 65416 0 0 0 1040527 0 33244 0 13 0 2 0 2064 0 8 0 89573 0 388 0 0 0 7306494 0 395 ...
result:
points 0.5 right answer but not right solutions at 266th solution
Test #10:
score: 6
Acceptable Answer
time: 25ms
memory: 8052kb
input:
4 269 100000 100 1048576 2 64 67108864 1024 67108864 268435456 32768 8388608 32 256 2 268435456 262144 524288 262144 2 524288 64 8192 262144 536870912 2097152 64 1024 2 1048576 128 2 8388608 512 32768 1 8388608 4 2 268435456 128 67108864 65536 2 8388608 2048 16 2048 4096 32768 1048576 32768 32 83886...
output:
471323918 0 522240 0 408220 0 15334 0 0 0 130666 0 28795 0 0 0 5046776 0 137216 0 17 0 10491514 0 106627 0 0 0 398 0 30 0 96585148 0 19 0 50405259 0 7208 0 112091185 0 2801 0 1041610 0 3005 0 66520960 0 32 0 5636927 0 2494360 0 14911 0 12288 0 11648 0 242 0 1536 0 63740 0 20 0 31029479 0 2312432 0 1...
result:
points 0.5 right answer but not right solutions at 269th solution
Test #11:
score: 6
Acceptable Answer
time: 39ms
memory: 5964kb
input:
4 2 100000 5000 32768 2 1024 1 65536 32768 4194304 4 2 33554432 1048576 268435456 4194304 268435456 268435456 4194304 32768 2097152 131072 16777216 1024 262144 2048 65536 512 1024 8388608 128 512 33554432 1 32 134217728 8388608 2097152 4 2097152 1048576 1024 33554432 536870912 536870912 33554432 327...
output:
362412129 0 301930735 0
result:
points 0.5 right answer but not right solutions at 2th solution
Test #12:
score: 6
Acceptable Answer
time: 18ms
memory: 10128kb
input:
4 1 100000 10000 32 536870912 4194304 32768 8 16777216 16384 32768 131072 131072 128 8192 32 32 256 4096 8 268435456 65536 1024 64 1024 4194304 4194304 128 268435456 2097152 64 8192 1048576 33554432 128 4194304 16 134217728 128 16384 4 33554432 67108864 2048 33554432 524288 1048576 4 4096 268435456 ...
output:
454096 0
result:
points 0.5 right answer but not right solutions at 1th solution
Test #13:
score: 6
Acceptable Answer
time: 182ms
memory: 5704kb
input:
4 10000 20 1 536870912 131072 2048 8388608 2097152 128 4 67108864 8 128 1048576 8388608 32768 8 2097152 2 256 512 256 8388608 20 1 67108864 134217728 64 8 1024 134217728 536870912 256 268435456 65536 16777216 4 4096 4194304 131072 16384 128 16384 65536 2 20 1 16 1048576 16384 33554432 131072 128 204...
output:
477201922 0 322833594 0 437384810 0 28919934 0 404849460 0 101097686 0 461878399 0 4665914 0 64231535 0 117918999 0 15956072 0 262131804 0 167552064 0 468733025 0 49843206 0 29156204 0 526787427 0 469242200 0 266403838 0 417318286 0 33679137 0 512741243 0 470286254 0 132372447 0 134735843 0 45482210...
result:
points 0.5 right answer but not right solutions at 10000th solution
Test #14:
score: 6
Acceptable Answer
time: 53ms
memory: 5632kb
input:
4 100 2000 100 524288 1 4096 16 32768 8 2048 262144 512 512 268435456 2048 256 32 1048576 524288 536870912 134217728 2048 64 33554432 65536 4 8388608 512 67108864 67108864 1048576 8388608 524288 256 4096 32 131072 536870912 2 8388608 2 67108864 128 32 8192 67108864 268435456 524288 8388608 8388608 1...
output:
352738786 0 137554370 0 139915444 0 506353193 0 222598206 0 45570433 0 283781801 0 4250357 0 466145216 0 47896275 0 98258551 0 181684496 0 481379261 0 193365556 0 462799770 0 138936712 0 303816768 0 504613883 0 400168514 0 114180364 0 219229324 0 305217574 0 289429186 0 89870767 0 522134822 0 316528...
result:
points 0.5 right answer but not right solutions at 100th solution
Test #15:
score: 6
Acceptable Answer
time: 12ms
memory: 9812kb
input:
4 1 69901 10000 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 5242...
output:
280444 0
result:
points 0.5 right answer but not right solutions at 1th solution
Test #16:
score: 6
Acceptable Answer
time: 17ms
memory: 9960kb
input:
4 2 48360 5000 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 524288 52428...
output:
253569 0 216920 0
result:
points 0.5 right answer but not right solutions at 2th solution
Test #17:
score: 6
Acceptable Answer
time: 3ms
memory: 5648kb
input:
4 100 34 100 536870912 536870912 268435456 134217728 67108864 67108864 33554432 16777216 8388608 1048576 524288 262144 131072 65536 65536 32768 32768 16384 8192 8192 4096 4096 2048 2048 1024 512 512 64 64 32 32 16 4 4 36 100 536870912 536870912 268435456 134217728 134217728 67108864 67108864 1677721...
output:
158712816 0 262139392 0 31641857 0 470815705 0 165897214 0 58754055 0 528483262 0 386103654 0 406589042 0 157313028 0 214535928 0 120514328 0 259227086 0 473934071 0 410532848 0 51368960 0 141156750 0 7892528 0 102547440 0 536827128 0 134418225 0 126151058 0 521012734 0 8296463 0 403506148 0 2307768...
result:
points 0.5 right answer but not right solutions at 100th solution
Subtask #5:
score: 6
Acceptable Answer
Test #18:
score: 6
Acceptable Answer
time: 190ms
memory: 5708kb
input:
5 10000 10 1 0 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 10 1 0 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 10 1 0 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741...
output:
1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1073741823 0 1...
result:
points 0.5 right answer but not right solutions at 10000th solution
Test #19:
score: 6
Acceptable Answer
time: 94ms
memory: 7984kb
input:
5 2323 100000 1 0 3170633 888529329 347839787 101667249 273239696 1028446182 411994109 710973319 298677951 299452068 519308796 361451040 488605068 74238166 997794448 478367019 532094220 747266199 217905213 682359917 774814810 234838947 456387659 38459020 434013070 633290806 173828476 94076883 568288...
output:
11962 0 1607036 0 106 0 3 0 126 0 727 0 64001 0 147 0 18 0 2820 0 6234491 0 163 0 316 0 1 0 6831 0 2 0 58512441 0 1095 0 190 0 14 0 14 0 25337127 0 3135892 0 9443 0 7 0 174 0 1 0 175 0 23492762 0 24504133 0 8 0 1 0 503446969 0 1 0 4 0 16777215 0 1673 0 15021249 0 394 0 866019 0 21182202 0 2701101 0 ...
result:
points 0.5 right answer but not right solutions at 2323th solution
Test #20:
score: 6
Acceptable Answer
time: 90ms
memory: 8072kb
input:
5 2205 100000 1 0 684191025 220215685 982495864 602362406 687396179 439432236 81065680 398068897 269754402 306183653 309939439 664994998 1011962742 338161922 629593565 926305057 1026259775 711874360 69406110 426672919 208267066 551253027 9384823 26156203 778817402 654214308 527029151 1065024353 2870...
output:
22539 0 5296170 0 2997548 0 10 0 73171 0 63846191 0 160 0 54472 0 80 0 30 0 8647672 0 48079473 0 534 0 388781939 0 33000512 0 27487079 0 2 0 535 0 18402845 0 500239140 0 20596370 0 538 0 70 0 1315 0 1308627 0 1172423 0 1296 0 10 0 4 0 83 0 0 0 597875 0 31 0 138 0 0 0 16 0 217 0 174066623 0 131999576...
result:
points 0.5 right answer but not right solutions at 2205th solution
Test #21:
score: 6
Acceptable Answer
time: 92ms
memory: 6096kb
input:
5 2166 100000 1 0 58930516 543560994 783997157 728082180 789115629 549794748 81818067 214839912 203394814 711969322 908524000 570262778 992867922 359455295 88035653 412186516 937931728 331800409 545354553 535440658 894562512 657466952 555070606 469471475 1055263866 874958292 76960239 478302168 68009...
output:
8241 0 2846999 0 1605 0 21150 0 13 0 0 0 1667525 0 89607968 0 146855 0 30 0 232032 0 3116 0 2 0 43907922 0 6789 0 262673 0 1 0 6250528 0 593516 0 196 0 4 0 272629760 0 9338564 0 15019723 0 131806 0 3019 0 110370613 0 7 0 368886820 0 12 0 5 0 117 0 1 0 110 0 5187 0 16737 0 44904 0 1124 0 25 0 18 0 17...
result:
points 0.5 right answer but not right solutions at 2166th solution
Subtask #6:
score: 8
Acceptable Answer
Test #22:
score: 8
Acceptable Answer
time: 1ms
memory: 5712kb
input:
6 23 1000 10 0 357293452 452461848 986047039 546588280 762710079 767831017 39741545 416114273 515599366 1018969624 603342125 928112286 1053016142 240953466 533088067 1028134429 504727014 371307863 834428873 968387878 478550336 1047217797 1046651542 777749850 866989319 92995163 251915198 363285573 10...
output:
264227 0 5 0 7 0 4 0 91693223 0 2097370 0 31 0 49 0 15 0 307991771 0 140516 0 6 0 4103 0 179 0 1 0 13 0 468910091 0 468961 0 5 0 510 0 50097157 0 4346 0 32699 0
result:
points 0.5 right answer but not right solutions at 23th solution
Test #23:
score: 8
Acceptable Answer
time: 1ms
memory: 5704kb
input:
6 23 1000 10 0 978686021 287986921 276311856 889616598 739968417 1060147652 463275477 172393699 591333230 983197307 235514434 330494755 449056272 882229818 781111474 275587745 980041928 334198691 305313012 415758352 947298893 950211162 909723054 961622596 917454340 161928901 404346316 369133631 1038...
output:
709905 0 1148 0 199214 0 920 0 3412 0 51 0 0 0 12155683 0 524287 0 27 0 7669 0 2 0 1163 0 1399949 0 26291797 0 669663 0 18 0 121 0 492112602 0 3990400 0 2 0 65535 0 7178 0
result:
points 0.5 right answer but not right solutions at 23th solution
Test #24:
score: 8
Acceptable Answer
time: 0ms
memory: 5708kb
input:
6 15 1000 10 0 631723071 149784582 965844254 515554472 887253148 467825521 981769969 1054193550 627909969 590277818 159342752 658063143 667914173 169490051 25536270 337269419 1056885019 980490575 750858271 553446484 347553447 376197986 1053224035 473470890 123586 97769047 761755924 510998818 2560945...
output:
737485 0 264867077 0 65535 0 2097160 0 34 0 11648 0 144 0 1 0 13 0 666046 0 4 0 8 0 108104785 0 24 0 82 0
result:
points 0.5 right answer but not right solutions at 15th solution
Test #25:
score: 8
Acceptable Answer
time: 2ms
memory: 5708kb
input:
6 25 1000 10 0 751950140 901599329 987895071 306253500 278530668 539473653 911723672 948474628 722632384 369217860 428703545 999113214 567923990 53499297 1013528916 263060554 669297221 349021033 832596533 893306880 892438572 345611286 331257977 488113061 578929864 881846255 320356815 76057168 704694...
output:
1119212 0 65316 0 1073741823 0 3 0 3610519 0 525 0 3 0 995 0 6 0 507 0 1 0 94 0 14709283 0 1307943 0 209426 0 197310664 0 3433909 0 221226 0 33541088 0 1 0 5 0 91 0 8 0 270150 0 24270 0
result:
points 0.5 right answer but not right solutions at 25th solution
Test #26:
score: 8
Acceptable Answer
time: 0ms
memory: 5664kb
input:
6 2 1000 1 0 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1...
output:
1073741823 0 1073741823 0
result:
points 0.5 right answer but not right solutions at 2th solution
Subtask #7:
score: 8
Acceptable Answer
Dependency #3:
50%
Acceptable Answer
Dependency #5:
50%
Acceptable Answer
Dependency #6:
50%
Acceptable Answer
Test #27:
score: 8
Acceptable Answer
time: 36ms
memory: 8032kb
input:
7 195 100000 1000 0 828483622 617711013 242092397 1034026464 456205583 731635466 382894773 533786631 582730039 74863848 661821965 368857719 541353387 662605236 580923280 798012506 54823622 333416217 39292129 995195996 477140985 1014499425 362164396 970752859 879997855 96768859 1005365898 576674982 4...
output:
23456 0 190129 0 4762892 0 127 0 3 0 652019 0 225944 0 45 0 13555 0 399951772 0 140030 0 2 0 12251168 0 3 0 209969103 0 247 0 879 0 2969 0 16776833 0 2 0 544 0 159680962 0 3 0 1 0 946 0 62914 0 2085 0 126211826 0 2654 0 3 0 59826 0 13597109 0 0 0 144039661 0 151 0 1630644 0 296374 0 742 0 1341901 0 ...
result:
points 0.5 right answer but not right solutions at 195th solution
Test #28:
score: 8
Acceptable Answer
time: 33ms
memory: 6088kb
input:
7 228 100000 1000 0 230727359 951312015 741711018 367230626 775024687 130794976 435788836 781961691 736694220 427610697 1016199868 798240399 340962994 1006804448 708169239 976753368 364431996 495851435 246658001 190094424 1054346726 639713727 218794912 229693460 313349630 85091951 418997497 27345904...
output:
5906 0 18135 0 1201 0 407255 0 5 0 14972 0 22 0 8325023 0 3303 0 31696 0 29 0 19489 0 401018475 0 7656 0 6276610 0 205182348 0 2 0 29379594 0 11 0 7265 0 6 0 38407 0 2 0 18602088 0 22 0 8397652 0 9 0 148660303 0 203 0 13220358 0 38532 0 212 0 2650 0 5 0 3845945 0 573397 0 7808 0 1007600 0 1728459 0 ...
result:
points 0.5 right answer but not right solutions at 228th solution
Test #29:
score: 8
Acceptable Answer
time: 34ms
memory: 8036kb
input:
7 221 100000 1000 0 716795222 632538294 1008333912 248043863 1023411987 11954597 917179098 100756831 19780613 336926235 768679016 371044675 360783184 402042708 1056697208 567354265 284551620 146863144 1008241012 536649321 680142584 506474136 80860918 973856876 30288601 668537691 877380398 131785980 ...
output:
13893 0 71742222 0 19 0 32784 0 1000 0 1857268 0 109048 0 254598075 0 916362 0 3147950 0 104859934 0 10 0 1017 0 4963 0 3 0 142293 0 1525 0 1 0 26577 0 29 0 392 0 10450940 0 20761 0 61 0 1520 0 370584 0 285402 0 17 0 0 0 2565707 0 6086 0 33167 0 0 0 2158916 0 0 0 14946438 0 5179 0 93 0 825 0 1013972...
result:
points 0.5 right answer but not right solutions at 221th solution
Test #30:
score: 8
Acceptable Answer
time: 3ms
memory: 5712kb
input:
7 1000 3 10 0 729041606 776089922 3 10 0 73695624 783752411 3 10 0 820372959 215264354 3 10 0 919645823 161862972 3 10 0 416211733 881194269 3 10 0 275811209 281074929 3 10 0 582815620 342763006 3 10 0 922520113 399127881 3 10 0 299636294 328307001 3 10 0 666654277 503934330 3 10 0 2735358 732598564...
output:
47048316 0 710056787 0 605108605 0 757782851 0 464982536 0 5263720 0 240052614 0 523392232 0 28670707 0 162719947 0 729863206 0 161456322 0 266844262 0 105434725 0 117877845 0 699823714 0 463438967 0 367062370 0 156451638 0 212429665 0 224464772 0 773211767 0 177263893 0 516939297 0 97265282 0 13399...
result:
points 0.5 right answer but not right solutions at 1000th solution
Test #31:
score: 8
Acceptable Answer
time: 7ms
memory: 5708kb
input:
7 2000 3 5 0 3978360 573616453 3 5 0 547375641 97549509 3 5 0 710402134 567209414 3 5 0 712013879 1031360933 3 5 0 118351677 538884285 3 5 0 96665729 441728559 3 5 0 1021357084 735021028 3 5 0 882151625 958055123 3 5 0 521548745 517316479 3 5 0 162247430 426447555 3 5 0 423460219 408674001 3 5 0 247...
output:
569638093 0 449826132 0 143192720 0 319347054 0 420532608 0 345062830 0 286336056 0 75903498 0 4232266 0 264200125 0 14786218 0 150436517 0 422359382 0 300348736 0 970827516 0 25244842 0 89468343 0 421807264 0 740554825 0 76221311 0 664258679 0 173145669 0 332940199 0 52538227 0 870569928 0 44513777...
result:
points 0.5 right answer but not right solutions at 2000th solution
Test #32:
score: 8
Acceptable Answer
time: 9ms
memory: 5664kb
input:
7 1000 4 10 0 827032080 596299879 377757837 4 10 0 139678996 620475310 982977750 4 10 0 327504523 973136882 1056046317 4 10 0 703538140 645917988 869157682 4 10 0 453817111 255127787 753233051 4 10 0 503195344 905031432 746786602 4 10 0 615183881 988518844 555461556 4 10 0 932813811 356392410 858830...
output:
28167702 0 222823444 0 292275824 0 683834902 0 121819449 0 76114078 0 891615231 0 291045006 0 133704958 0 305029321 0 393329211 0 283217357 0 157058457 0 281089672 0 93700319 0 144357720 0 206768416 0 613361549 0 315940698 0 253849337 0 464578724 0 738419605 0 116870921 0 24687301 0 446477364 0 1758...
result:
points 0.5 right answer but not right solutions at 1000th solution
Test #33:
score: 8
Acceptable Answer
time: 26ms
memory: 8080kb
input:
7 2 100000 1 0 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823...
output:
1073741823 0 1073741823 0
result:
points 0.5 right answer but not right solutions at 2th solution
Test #34:
score: 8
Acceptable Answer
time: 34ms
memory: 6000kb
input:
7 204 100000 1000 0 867143449 289720871 62880653 256495758 373546157 114942061 524281177 164218453 261500635 241690011 911469619 794136322 460604293 201667773 1001245336 873383805 136426866 731765422 1036091702 428463064 474020221 916532901 913755707 704796468 745115429 387268771 611877390 101588067...
output:
1241 0 784 0 109 0 1 0 158667 0 169557 0 5 0 64202 0 2673701 0 0 0 10 0 1 0 36592 0 0 0 63 0 1 0 19354090 0 290 0 307499 0 18162817 0 113920 0 34 0 3058 0 14375 0 5980385 0 15 0 15 0 5 0 892269 0 27493 0 76137 0 94441144 0 8 0 5685 0 671056 0 26133518 0 32021 0 23719651 0 1485822 0 145911760 0 2 0 1...
result:
points 0.5 right answer but not right solutions at 204th solution
Subtask #8:
score: 4
Acceptable Answer
Dependency #7:
50%
Acceptable Answer
Dependency #4:
50%
Acceptable Answer
Dependency #1:
50%
Acceptable Answer
Test #35:
score: 4
Acceptable Answer
time: 36ms
memory: 6092kb
input:
8 259 99999 1000 0 184042404 114860590 81955939 149152356 141033215 259145072 144981065 194732174 87943638 3239431 196977178 27923106 209711053 259763893 143914852 152580789 5161376 220134523 49139129 179593854 115442954 268238166 42599190 6509126 76156465 153820967 111093283 89981466 186373935 6842...
output:
553 0 42746320 0 6761 0 3480 0 1298539109 0 4350097 0 14 0 5 0 18 0 232438 0 106 0 13 0 4395492 0 92311 0 1953 0 302910399 0 151394971 0 490939 0 5239328 0 573397 0 604044810 0 1093 0 8064 0 41614585 0 554 0 477 0 578568 0 2590831 0 543 0 7784 0 5 0 553 0 526 0 4 0 19145 0 4465255 0 62947944 0 20954...
result:
points 0.5 right answer but not right solutions at 259th solution
Test #36:
score: 4
Acceptable Answer
time: 19ms
memory: 5708kb
input:
8 2000 4 5 775795058 434974743 31074946 428696702 4 5 373180095 760380481 419902862 1049258222 4 5 667161035 673656536 537091509 513688618 4 5 724027945 494292286 644201747 822331951 4 5 661539617 30050732 358848696 134411535 4 5 385734187 236947885 562514730 169874287 4 5 600384888 205880481 862584...
output:
260593779 0 56241154 0 29457198 0 214162301 0 217428164 0 192566505 0 63509950 0 135645631 0 32027485 0 205182050 0 173010423 0 422730891 0 150450921 0 138359182 0 37172836 0 251124647 0 100495352 0 190150885 0 86656182 0 178728651 0 290829343 0 733330243 0 130522550 0 377049680 0 89722932 0 1685758...
result:
points 0.5 right answer but not right solutions at 2000th solution
Test #37:
score: 4
Acceptable Answer
time: 13ms
memory: 5704kb
input:
8 1000 5 10 925022554 416509837 681820051 569347404 420577661 5 10 676949322 809105046 710668968 622139077 525882012 5 10 1016024766 383498611 324818602 167492568 583945990 5 10 607262806 436684746 91524379 563713486 399361534 5 10 34445929 59287234 604627291 374306204 356825324 5 10 397715954 64098...
output:
178944881 0 122938703 0 168506451 0 30658863 0 384230340 0 156460431 0 63788406 0 108317600 0 166932318 0 140262909 0 30600295 0 203266647 0 13581958 0 469709449 0 260531169 0 206929378 0 158126745 0 429909205 0 438970887 0 239936159 0 136858051 0 45610923 0 132821521 0 134649820 0 25422621 0 476895...
result:
points 0.5 right answer but not right solutions at 1000th solution
Test #38:
score: 4
Acceptable Answer
time: 22ms
memory: 5708kb
input:
8 2000 5 5 473869931 296333033 588516074 759843895 35958055 5 5 953551548 127791846 1067155511 142228569 808428787 5 5 977517289 585648677 426698807 253563544 406251869 5 5 686608779 801530488 616526809 555449962 916117338 5 5 348008156 65221769 877389953 1015414374 793534370 5 5 655907997 32966869 ...
output:
16644274 0 645767497 0 110660760 0 1024327476 0 232330582 0 224408976 0 83475944 0 107153238 0 252582951 0 156279402 0 409302097 0 104539840 0 118056848 0 16800835 0 22702124 0 12377693 0 95545943 0 178085029 0 225858383 0 139414028 0 210708886 0 265396882 0 213713051 0 77710250 0 215512363 0 149636...
result:
points 0.5 right answer but not right solutions at 2000th solution
Test #39:
score: 4
Acceptable Answer
time: 28ms
memory: 9828kb
input:
8 1 100000 10000 915290977 22868788 1025329403 347856861 420729394 1031706586 333760509 169548927 301431481 435455016 662381372 586742635 364996906 344073612 411728519 737579061 507676813 207760998 366591424 858197674 366805311 138854539 67574619 198712646 669454189 994338754 531742435 589428670 190...
output:
3351 0
result:
points 0.5 right answer but not right solutions at 1th solution
Test #40:
score: 4
Acceptable Answer
time: 27ms
memory: 6092kb
input:
8 2 99999 5000 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823 1073741823...
output:
1073741825 0 1073741825 0
result:
points 0.5 right answer but not right solutions at 2th solution
Test #41:
score: 4
Acceptable Answer
time: 34ms
memory: 10056kb
input:
8 229 99999 1000 0 67684423 27530736 262933500 210540490 87986446 142495215 8108489 162333902 7472566 74649932 22340176 96113149 105072940 96282592 479313 231805795 113210597 21907161 131354773 137785844 44861082 60046190 195538723 185926550 49537906 255986573 48373131 153611664 98228321 259354412 1...
output:
1406 0 76226279 0 8710 0 1027 0 10 0 484142 0 2268 0 75825 0 1974761 0 3 0 6 0 3259813 0 9754794 0 1165 0 435 0 15872 0 1580866 0 153600 0 14 0 267 0 2 0 105 0 2 0 14 0 9 0 4638243 0 322037 0 2360 0 9644 0 1012175552 0 19037716 0 0 0 19 0 466 0 16518 0 5120 0 30476 0 3733 0 1037724 0 9505942 0 58007...
result:
points 0.5 right answer but not right solutions at 229th solution
Subtask #9:
score: 0
Wrong Answer
Dependency #8:
50%
Acceptable Answer
Test #42:
score: 0
Wrong Answer
time: 50ms
memory: 5960kb
input:
9 299 99999 2000 0 46856671573051356 144451722821279396 194202742420356088 42768202435393968 146930968341077918 121735975802283045 43381059403904591 9790356926653248 90585698509588415 182205406048046442 106698163084666387 83495547377102990 95530264027271484 151047337738852707 263069394355867183 2157...
output:
3144886350134 0 171390666309632 0 40813686188869 0 9 0 3827735658 0 298766967590 0 624193874495696 0 158581180356032222 0 17483 0 1219144 0 16005705485 0 7117548522 0 79092772551864 0 11113406150121450 0 308536016766 0 653878648732044 0 9308526 0 19912642 0 14359442890301 0 0 0 74154470 0 2520753720...
result:
wrong answer jury has worse answer? check your output.