QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#418986 | #7153. XOr | Cidoai | AC ✓ | 8ms | 2108kb | C++14 | 872b | 2024-05-23 16:49:43 | 2024-05-23 16:49:43 |
Judging History
answer
#include<cstdio>
typedef long long ll;
inline ll read(){
ll x=0;
int f=0,ch=0;
while(ch<48||ch>57) f=(ch=='-'),ch=getchar();
while(ch>47&&ch<58) x=(x<<3)+(x<<1)+(ch&15),ch=getchar();
return f?-x:x;
}
inline void write(ll x,char end=' '){
if(x==0){
putchar('0');
putchar(end);
return;
}
if(x<0) putchar('-'),x=-x;
int ch[40]={0},cnt=0;
while(x){
ch[cnt++]=(int)(x%10);
x/=10;
}
while(cnt--) putchar(ch[cnt]+48);
putchar(end);
}
const int N=2e5+5;
int n,m;
int a[N];
inline bool check(int x){
int sum=0,nw=0;
for(int i=1;i<=n;++i){
nw^=(a[i]&x);
if(!nw) sum++;
}
if(nw) return 0;
return sum>=m;
}
int main(){
n=read(),m=read();
for(int i=1;i<=n;++i) a[i]=read();
int ans=0;
for(int i=30;i>=0;--i){
ans|=(1<<i);
if(!check(ans)) ans^=(1<<i);
}
write(ans^((1<<30)-1+(1<<30)));
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 1240kb
input:
3 2 1 3 2
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 0ms
memory: 1228kb
input:
4 3 1 2 0 2
output:
3
result:
ok 1 number(s): "3"
Test #3:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
5 2 0 0 2 0 0
output:
2
result:
ok 1 number(s): "2"
Test #4:
score: 0
Accepted
time: 0ms
memory: 1272kb
input:
5 3 1 1 1 0 1
output:
1
result:
ok 1 number(s): "1"
Test #5:
score: 0
Accepted
time: 0ms
memory: 1300kb
input:
5 2 1 0 1 0 2
output:
2
result:
ok 1 number(s): "2"
Test #6:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
5 2 0 1 1 1 2
output:
3
result:
ok 1 number(s): "3"
Test #7:
score: 0
Accepted
time: 0ms
memory: 1324kb
input:
5 2 2 2 2 1 0
output:
3
result:
ok 1 number(s): "3"
Test #8:
score: 0
Accepted
time: 0ms
memory: 1336kb
input:
5 3 2 2 0 1 1
output:
0
result:
ok 1 number(s): "0"
Test #9:
score: 0
Accepted
time: 0ms
memory: 1328kb
input:
5 3 0 2 1 2 1
output:
1
result:
ok 1 number(s): "1"
Test #10:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
5 3 2 1 2 0 1
output:
1
result:
ok 1 number(s): "1"
Test #11:
score: 0
Accepted
time: 0ms
memory: 1212kb
input:
5 2 1 2 2 2 0
output:
3
result:
ok 1 number(s): "3"
Test #12:
score: 0
Accepted
time: 0ms
memory: 1224kb
input:
5 1 2 0 1 2 1
output:
0
result:
ok 1 number(s): "0"
Test #13:
score: 0
Accepted
time: 0ms
memory: 1304kb
input:
5 2 1 0 1 1 0
output:
1
result:
ok 1 number(s): "1"
Test #14:
score: 0
Accepted
time: 0ms
memory: 1248kb
input:
5 1 0 0 0 0 0
output:
0
result:
ok 1 number(s): "0"
Test #15:
score: 0
Accepted
time: 0ms
memory: 1300kb
input:
5 1 1 1 2 2 0
output:
0
result:
ok 1 number(s): "0"
Test #16:
score: 0
Accepted
time: 0ms
memory: 1260kb
input:
5 5 0 0 0 1 1
output:
1
result:
ok 1 number(s): "1"
Test #17:
score: 0
Accepted
time: 0ms
memory: 1240kb
input:
5 4 2 1 1 0 2
output:
2
result:
ok 1 number(s): "2"
Test #18:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
5 3 1 2 1 2 2
output:
2
result:
ok 1 number(s): "2"
Test #19:
score: 0
Accepted
time: 0ms
memory: 1316kb
input:
5 2 0 1 0 0 0
output:
1
result:
ok 1 number(s): "1"
Test #20:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
5 1 0 0 2 0 1
output:
3
result:
ok 1 number(s): "3"
Test #21:
score: 0
Accepted
time: 0ms
memory: 1304kb
input:
5 1 0 0 0 1 1
output:
0
result:
ok 1 number(s): "0"
Test #22:
score: 0
Accepted
time: 0ms
memory: 1320kb
input:
5 4 0 1 2 1 0
output:
3
result:
ok 1 number(s): "3"
Test #23:
score: 0
Accepted
time: 0ms
memory: 1228kb
input:
10 1 1 2 0 0 0 1 2 0 2 2
output:
0
result:
ok 1 number(s): "0"
Test #24:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
10 8 0 0 0 1 0 0 0 1 0 0
output:
1
result:
ok 1 number(s): "1"
Test #25:
score: 0
Accepted
time: 0ms
memory: 1236kb
input:
10 4 1 0 2 0 2 2 0 0 2 0
output:
1
result:
ok 1 number(s): "1"
Test #26:
score: 0
Accepted
time: 0ms
memory: 1316kb
input:
10 10 2 0 0 0 1 1 2 1 1 1
output:
3
result:
ok 1 number(s): "3"
Test #27:
score: 0
Accepted
time: 0ms
memory: 1240kb
input:
10 6 0 0 1 2 2 2 0 1 2 0
output:
1
result:
ok 1 number(s): "1"
Test #28:
score: 0
Accepted
time: 0ms
memory: 1248kb
input:
10 5 1 0 2 0 1 1 0 1 0 2
output:
3
result:
ok 1 number(s): "3"
Test #29:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
10 3 2 2 1 2 1 1 2 2 1 2
output:
1
result:
ok 1 number(s): "1"
Test #30:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
10 9 1 2 2 0 2 2 0 2 0 2
output:
3
result:
ok 1 number(s): "3"
Test #31:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
10 5 2 2 0 2 0 2 0 1 2 0
output:
3
result:
ok 1 number(s): "3"
Test #32:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
10 9 2 1 1 0 1 2 1 0 1 1
output:
3
result:
ok 1 number(s): "3"
Test #33:
score: 0
Accepted
time: 0ms
memory: 1320kb
input:
1000 612 0 2 2 0 1 2 2 1 0 1 2 2 2 1 1 1 2 0 1 1 1 2 2 1 2 2 2 2 1 0 0 0 0 2 2 0 0 2 0 2 2 0 2 1 2 0 0 0 0 1 0 1 1 2 0 0 1 2 2 2 2 1 0 0 2 1 1 2 1 2 1 0 2 2 1 2 1 2 2 0 2 2 2 2 1 0 2 2 0 0 2 2 2 2 2 0 2 0 1 0 0 1 0 1 1 2 1 2 2 1 1 1 1 0 1 1 1 2 1 1 1 1 0 2 2 0 1 0 2 2 1 2 0 0 0 1 0 2 2 1 1 2 2 2 0 1...
output:
3
result:
ok 1 number(s): "3"
Test #34:
score: 0
Accepted
time: 0ms
memory: 1212kb
input:
1000 534 0 1 1 2 0 1 0 1 1 0 0 1 0 1 0 0 2 0 0 0 0 1 0 0 0 2 2 1 0 2 0 0 1 2 2 0 2 2 2 0 2 0 0 2 2 2 0 1 1 0 0 1 2 2 0 2 1 0 1 1 1 1 2 0 2 1 2 2 2 0 2 1 2 0 2 0 1 1 1 2 2 1 2 1 2 2 1 2 1 1 0 2 0 2 0 0 1 1 2 1 2 0 1 1 0 0 0 2 0 1 1 1 2 0 1 1 0 1 2 1 1 0 1 2 0 0 1 0 2 0 2 1 0 0 0 0 1 1 2 1 0 1 1 1 2 2...
output:
3
result:
ok 1 number(s): "3"
Test #35:
score: 0
Accepted
time: 0ms
memory: 1224kb
input:
1000 752 0 0 2 2 1 2 1 1 2 0 1 2 2 0 1 2 1 2 2 1 2 1 2 1 2 2 1 0 0 1 0 0 1 0 1 0 0 2 1 1 0 2 1 1 2 0 2 1 1 1 1 2 0 0 0 0 2 1 1 2 0 1 1 2 0 2 2 2 2 2 0 2 1 2 2 1 1 1 0 1 2 1 0 0 2 2 0 1 2 1 0 0 1 2 2 1 0 1 1 0 2 1 2 2 1 1 0 2 2 1 0 2 0 0 2 2 2 1 0 0 1 2 0 1 1 2 1 2 0 1 1 0 0 1 0 0 0 2 1 2 1 2 1 1 2 2...
output:
3
result:
ok 1 number(s): "3"
Test #36:
score: 0
Accepted
time: 0ms
memory: 1308kb
input:
1000 970 2 1 1 0 1 2 0 2 2 1 1 0 0 2 0 0 2 1 2 0 1 1 1 2 2 2 1 2 1 0 1 0 0 2 0 1 2 0 0 2 2 0 0 2 0 2 2 0 2 1 0 0 2 0 0 1 2 0 2 1 1 2 2 1 2 2 2 2 1 2 2 2 1 0 0 2 0 1 0 0 2 1 2 1 2 1 0 0 0 0 2 1 1 2 2 1 1 2 1 2 2 2 2 2 0 1 2 0 2 0 2 1 1 2 1 1 0 2 1 2 2 2 2 1 0 1 0 2 0 1 2 1 1 2 2 1 0 1 2 0 2 1 1 2 1 0...
output:
3
result:
ok 1 number(s): "3"
Test #37:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
1000 85 0 1 0 2 2 2 1 1 2 1 2 0 0 1 1 0 2 2 1 2 2 2 1 1 2 2 1 1 2 2 0 2 0 1 1 0 1 2 0 2 0 0 2 1 0 0 2 1 0 2 1 1 2 1 2 0 0 1 2 2 1 0 1 0 0 0 0 1 0 2 1 0 2 0 2 1 0 1 1 1 2 2 1 0 1 0 0 1 0 1 2 2 2 1 1 1 0 1 2 1 2 2 0 0 2 2 1 0 0 1 0 2 2 2 2 1 2 2 1 1 1 1 1 1 2 0 0 2 0 1 2 1 2 1 0 1 1 1 2 2 1 2 1 1 2 1 ...
output:
1
result:
ok 1 number(s): "1"
Test #38:
score: 0
Accepted
time: 0ms
memory: 1312kb
input:
1000 303 1 0 2 1 1 2 2 2 2 2 2 1 1 2 2 2 1 1 0 2 0 0 0 0 1 2 1 1 1 1 0 1 0 2 1 1 2 2 1 2 1 2 1 1 2 2 0 0 0 0 1 1 1 1 0 1 0 0 0 1 2 0 2 1 2 1 0 1 1 2 2 1 2 0 1 1 0 0 0 2 1 2 0 0 0 2 2 1 0 0 0 1 0 1 2 2 0 0 2 0 0 1 0 2 0 0 2 2 0 0 1 0 2 1 0 2 0 0 2 0 1 2 2 2 0 2 1 0 2 0 1 1 1 2 0 2 1 1 1 1 2 0 1 0 0 2...
output:
2
result:
ok 1 number(s): "2"
Test #39:
score: 0
Accepted
time: 0ms
memory: 1240kb
input:
1000 521 2 1 1 1 1 2 1 0 1 1 0 1 2 0 0 1 0 1 0 2 0 0 1 1 2 0 1 0 1 2 2 0 0 2 2 2 1 1 1 1 0 2 0 1 0 0 2 2 0 0 2 2 1 0 2 0 1 0 0 2 0 0 0 0 2 2 2 0 1 2 1 1 2 1 0 0 2 1 0 2 0 2 1 1 0 0 2 1 2 2 2 1 1 0 0 0 1 0 2 2 0 0 1 2 2 0 1 1 2 1 1 2 0 1 2 1 2 1 0 0 2 0 0 1 2 1 2 0 0 0 0 1 2 0 2 1 2 2 0 0 0 2 1 2 1 2...
output:
3
result:
ok 1 number(s): "3"
Test #40:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
1000 635 2 0 2 2 2 2 2 2 1 0 1 1 2 2 1 2 2 0 2 1 0 1 0 0 1 0 0 2 1 2 0 2 0 0 0 1 0 2 2 0 1 2 1 1 0 2 1 0 0 1 0 0 2 2 1 1 0 0 2 0 0 1 2 1 1 2 0 2 2 2 1 2 1 0 2 0 1 0 2 0 0 0 1 0 1 0 0 1 2 2 1 0 1 0 1 2 0 1 1 1 2 1 1 0 1 1 1 0 2 1 0 0 1 0 2 0 0 2 1 2 0 1 0 2 0 1 2 0 2 0 0 1 2 0 0 2 1 0 1 2 2 0 1 1 1 0...
output:
3
result:
ok 1 number(s): "3"
Test #41:
score: 0
Accepted
time: 0ms
memory: 1276kb
input:
1000 558 1 2 2 0 1 0 2 0 0 2 1 2 2 1 2 2 1 0 1 2 1 2 0 0 0 2 2 1 1 0 1 2 0 0 2 1 1 1 2 0 2 0 0 2 0 0 0 0 1 1 0 1 1 2 2 1 2 2 0 2 2 2 2 2 0 0 0 0 2 1 1 0 0 0 1 2 1 0 1 1 0 1 2 0 1 2 2 0 0 1 2 0 2 2 1 0 2 2 0 0 1 2 2 0 2 2 0 1 1 2 2 1 0 1 1 0 1 1 2 0 1 0 0 2 1 0 2 0 2 2 1 0 2 1 1 1 2 1 0 0 0 1 0 2 0 1...
output:
3
result:
ok 1 number(s): "3"
Test #42:
score: 0
Accepted
time: 0ms
memory: 1276kb
input:
1000 281 2 2 2 1 1 1 1 0 1 1 2 2 0 0 1 1 1 2 1 2 0 2 2 2 1 2 0 0 2 0 1 2 1 1 2 0 0 1 0 0 1 0 2 0 1 2 2 0 0 0 1 2 1 2 2 0 1 0 1 1 2 0 2 1 0 0 2 1 1 2 2 0 0 1 1 0 0 1 2 1 0 2 0 1 0 1 1 1 2 2 0 1 2 0 1 2 2 2 0 0 2 2 2 1 2 1 2 2 1 2 2 1 0 1 2 2 2 0 0 1 0 0 0 0 0 1 1 0 2 2 1 2 0 1 0 1 0 2 1 1 0 1 2 2 1 1...
output:
3
result:
ok 1 number(s): "3"
Test #43:
score: 0
Accepted
time: 5ms
memory: 2020kb
input:
200000 148047 1 1 2 2 2 1 0 1 0 0 0 2 2 1 2 2 0 2 1 2 2 2 1 0 1 1 1 1 0 0 1 1 0 2 0 2 0 2 2 0 1 0 0 1 0 0 1 0 0 0 0 1 1 0 2 1 2 2 1 2 1 2 0 0 0 0 1 2 0 1 0 0 1 2 1 2 2 1 0 1 0 0 2 2 2 0 1 2 0 2 0 2 0 0 1 0 2 1 0 0 2 1 0 0 2 1 2 1 2 1 0 2 1 1 1 0 1 1 0 2 2 0 2 0 1 2 0 0 1 1 1 0 2 0 0 2 2 1 2 1 0 2 0 ...
output:
3
result:
ok 1 number(s): "3"
Test #44:
score: 0
Accepted
time: 5ms
memory: 1984kb
input:
200000 60215 0 0 1 2 2 2 2 1 2 2 1 0 0 2 1 1 1 1 0 0 1 1 2 2 2 2 1 1 1 1 2 0 1 0 1 0 1 2 2 2 0 1 0 2 2 0 2 1 2 2 1 0 2 0 2 0 0 2 0 0 1 2 0 1 0 1 0 1 0 0 2 1 0 2 0 0 1 0 2 0 0 1 0 2 1 2 1 1 2 1 2 0 0 1 0 0 2 2 2 2 2 1 2 1 0 0 0 1 1 2 1 1 0 0 1 2 2 2 2 0 0 1 1 1 1 2 0 1 2 0 0 2 1 0 1 1 0 0 0 0 2 1 2 0...
output:
1
result:
ok 1 number(s): "1"
Test #45:
score: 0
Accepted
time: 5ms
memory: 2108kb
input:
200000 163871 1 2 1 0 0 0 0 0 1 1 0 2 1 1 0 2 0 0 1 2 1 0 0 0 2 0 0 2 1 2 2 2 0 2 2 1 2 1 0 0 0 0 0 2 0 0 2 2 1 0 0 1 1 1 1 2 1 0 1 0 1 2 1 0 2 1 2 2 1 1 2 1 2 0 0 0 0 1 2 1 0 0 2 0 0 0 0 0 1 0 2 1 0 0 1 2 0 1 0 0 0 0 0 0 2 1 1 1 2 0 0 0 0 2 2 1 2 0 2 2 2 1 0 0 0 0 1 2 2 1 0 0 1 2 1 2 2 2 0 0 0 1 2 ...
output:
3
result:
ok 1 number(s): "3"
Test #46:
score: 0
Accepted
time: 2ms
memory: 2044kb
input:
200000 76040 1 1 2 1 2 0 2 0 0 1 1 2 2 2 2 2 2 0 1 1 2 2 2 2 0 0 2 2 2 0 1 2 0 0 0 1 2 2 0 1 2 1 0 0 2 1 1 0 0 0 0 0 0 0 0 2 0 1 1 1 2 2 2 1 2 1 2 2 0 2 2 2 1 1 2 2 1 0 0 1 1 2 1 1 1 0 0 1 2 2 2 2 0 0 2 2 0 2 2 1 2 2 1 2 0 2 1 2 1 1 0 2 0 1 2 0 1 0 1 2 0 1 2 1 1 1 1 0 2 1 0 1 1 0 0 0 2 0 1 0 1 1 0 0...
output:
1
result:
ok 1 number(s): "1"
Test #47:
score: 0
Accepted
time: 2ms
memory: 2100kb
input:
200000 12400 0 0 2 1 2 1 0 0 1 2 2 2 1 0 1 1 0 2 0 0 2 1 0 0 0 2 1 1 2 1 0 2 1 0 1 2 2 1 1 0 0 0 1 1 0 1 2 2 0 1 1 2 0 1 0 0 1 2 2 0 1 0 1 2 1 2 1 1 2 1 1 2 1 2 0 2 1 1 2 0 2 1 0 0 1 0 0 1 0 1 0 1 0 0 1 2 0 1 1 2 0 1 1 0 2 0 2 2 2 0 1 1 2 0 2 0 1 0 0 1 2 1 1 2 0 2 2 2 0 0 1 1 0 2 2 2 2 0 0 0 0 0 1 1...
output:
0
result:
ok 1 number(s): "0"
Test #48:
score: 0
Accepted
time: 5ms
memory: 2088kb
input:
200000 124569 2 1 1 2 0 2 1 0 2 0 2 2 0 1 0 1 2 1 0 0 1 0 1 2 1 0 1 2 0 2 1 2 1 0 0 0 1 2 0 1 0 2 2 2 2 1 2 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 2 1 2 2 0 1 0 0 1 0 2 1 2 0 1 0 2 2 0 0 2 0 0 2 1 1 1 0 1 1 2 2 1 0 1 1 1 0 2 1 0 2 1 2 2 0 1 2 0 0 2 2 1 2 2 2 0 1 1 0 2 2 0 1 0 0 0 0 2 0 0 2 0 0 0 1 0 1 ...
output:
3
result:
ok 1 number(s): "3"
Test #49:
score: 0
Accepted
time: 5ms
memory: 2100kb
input:
200000 60929 2 0 2 2 0 0 0 1 0 2 0 0 1 0 2 2 1 1 2 2 0 2 0 0 1 1 0 2 2 0 2 2 2 2 2 0 1 0 1 1 0 1 1 2 0 0 0 0 1 2 1 0 0 1 2 2 2 0 2 0 1 2 0 1 2 2 2 2 1 1 1 1 2 2 1 1 2 0 1 0 0 2 1 1 0 2 0 0 0 0 2 2 2 2 0 0 1 2 1 2 0 0 0 1 2 0 0 2 2 2 1 0 2 1 2 2 0 0 1 0 1 2 2 0 1 0 2 2 0 0 0 2 1 0 2 2 2 0 0 0 2 0 1 1...
output:
1
result:
ok 1 number(s): "1"
Test #50:
score: 0
Accepted
time: 2ms
memory: 2076kb
input:
200000 173097 1 2 2 0 0 1 2 2 2 1 1 2 2 0 0 1 1 0 1 0 1 1 2 2 1 1 2 2 2 1 0 2 1 1 1 1 2 2 1 1 2 0 2 0 2 2 1 2 1 2 0 0 1 1 0 2 1 1 0 2 1 2 0 0 2 0 2 1 2 2 2 0 1 2 2 1 0 1 2 0 2 0 0 2 1 2 2 1 0 0 2 0 2 2 1 2 2 0 0 1 1 2 2 2 2 0 1 2 2 1 2 2 1 0 0 1 1 0 1 1 2 2 1 1 0 0 2 0 1 1 2 1 2 2 1 1 2 0 0 2 1 0 2 ...
output:
3
result:
ok 1 number(s): "3"
Test #51:
score: 0
Accepted
time: 5ms
memory: 1992kb
input:
200000 76754 2 2 0 2 0 2 0 2 1 2 0 1 1 2 2 1 1 0 2 0 1 1 0 0 1 1 1 1 0 1 0 1 1 2 1 2 1 1 2 2 2 1 2 0 0 1 1 2 2 2 0 1 1 2 0 0 2 2 2 0 2 2 1 1 1 0 1 1 1 0 0 1 0 1 0 1 0 2 2 0 1 2 0 2 2 0 2 1 2 1 2 1 1 2 2 1 2 1 0 0 1 1 1 1 1 0 0 2 1 2 0 2 1 2 0 1 0 1 0 2 0 2 0 1 0 1 0 1 1 1 1 1 2 2 0 1 1 2 1 0 1 2 2 2...
output:
2
result:
ok 1 number(s): "2"
Test #52:
score: 0
Accepted
time: 5ms
memory: 2040kb
input:
200000 79741 0 0 0 0 2 1 2 0 0 0 0 1 0 0 2 1 0 1 2 1 2 0 0 0 0 1 2 0 2 1 0 0 2 1 2 2 1 1 1 2 1 2 0 1 2 2 1 2 2 2 1 1 2 0 0 0 1 0 0 2 2 0 1 1 1 0 1 1 2 0 0 1 1 2 2 2 1 1 0 1 1 2 1 2 0 2 1 2 1 1 1 0 2 2 0 0 0 0 1 0 2 0 2 1 2 2 1 1 1 2 0 1 1 0 0 0 1 0 2 2 2 2 1 2 0 2 1 0 1 1 1 2 1 0 2 1 2 2 2 1 0 2 0 1...
output:
2
result:
ok 1 number(s): "2"
Test #53:
score: 0
Accepted
time: 0ms
memory: 1320kb
input:
10 9 0 2 8 7 0 0 9 0 2 9
output:
15
result:
ok 1 number(s): "15"
Test #54:
score: 0
Accepted
time: 0ms
memory: 1236kb
input:
10 1 7 3 3 4 7 6 8 2 1 7
output:
14
result:
ok 1 number(s): "14"
Test #55:
score: 0
Accepted
time: 0ms
memory: 1272kb
input:
10 6 1 1 3 7 0 6 10 1 8 9
output:
9
result:
ok 1 number(s): "9"
Test #56:
score: 0
Accepted
time: 0ms
memory: 1324kb
input:
10 10 2 5 7 4 7 5 5 10 7 1
output:
15
result:
ok 1 number(s): "15"
Test #57:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
10 10 6 7 10 2 0 1 4 5 3 10
output:
15
result:
ok 1 number(s): "15"
Test #58:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
10 3 10 1 6 4 7 7 6 4 2 1
output:
9
result:
ok 1 number(s): "9"
Test #59:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
10 9 3 2 9 2 7 6 1 9 8 4
output:
15
result:
ok 1 number(s): "15"
Test #60:
score: 0
Accepted
time: 0ms
memory: 1212kb
input:
10 3 4 0 1 7 0 2 3 1 0 3
output:
3
result:
ok 1 number(s): "3"
Test #61:
score: 0
Accepted
time: 0ms
memory: 1244kb
input:
10 10 9 4 5 2 7 1 2 10 4 5
output:
15
result:
ok 1 number(s): "15"
Test #62:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
10 6 3 1 0 9 9 7 0 6 4 0
output:
7
result:
ok 1 number(s): "7"
Test #63:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
1000 976 0 6 2 8 10 4 10 5 10 5 5 1 1 10 9 6 0 7 7 8 4 6 10 9 8 2 6 4 6 6 8 2 0 0 10 5 6 5 7 2 7 3 8 9 6 5 6 3 5 3 3 0 6 0 1 7 3 1 6 0 6 9 9 1 5 5 2 5 3 2 8 1 9 6 10 1 4 6 6 3 10 5 9 0 3 3 5 10 8 1 8 3 5 10 0 1 3 3 2 8 3 4 8 10 9 3 6 6 7 2 4 8 5 4 5 0 9 10 1 7 3 6 5 8 10 10 0 10 5 9 7 3 4 6 1 0 6 1 ...
output:
15
result:
ok 1 number(s): "15"
Test #64:
score: 0
Accepted
time: 0ms
memory: 1216kb
input:
1000 454 5 6 1 8 9 2 8 1 2 9 2 3 5 4 0 4 0 5 0 8 2 1 4 9 0 6 7 10 1 6 9 3 10 2 3 4 9 4 7 8 9 1 6 4 3 2 2 4 0 0 2 6 7 8 3 6 3 3 8 2 4 5 9 1 5 1 6 1 7 6 3 7 7 8 6 4 9 9 9 5 1 0 10 1 8 7 7 1 2 10 7 4 2 1 10 1 3 10 6 0 6 1 1 3 9 7 1 2 0 3 6 4 5 5 7 4 8 6 5 1 3 3 7 2 2 10 5 7 6 1 8 4 6 8 1 8 10 1 6 10 2 ...
output:
11
result:
ok 1 number(s): "11"
Test #65:
score: 0
Accepted
time: 0ms
memory: 1320kb
input:
1000 828 10 1 10 8 9 5 7 3 8 2 6 2 2 10 6 3 2 4 4 0 0 8 1 9 8 3 6 5 7 9 10 8 2 5 4 7 10 3 10 5 1 4 8 10 8 8 10 8 8 1 2 6 4 5 8 5 0 3 6 4 6 6 9 1 2 9 6 8 9 6 1 9 4 6 10 10 6 1 3 10 3 7 1 6 6 10 8 10 7 8 2 6 2 9 1 9 10 7 3 4 2 9 1 7 7 0 8 10 7 4 4 10 9 10 7 3 6 1 4 9 10 8 2 10 8 9 6 4 0 7 2 8 2 8 1 9 ...
output:
15
result:
ok 1 number(s): "15"
Test #66:
score: 0
Accepted
time: 0ms
memory: 1272kb
input:
1000 305 4 1 0 8 4 7 3 10 10 0 10 1 6 4 8 6 3 6 8 10 2 7 2 1 10 8 4 9 6 9 10 9 5 0 1 3 10 2 2 1 6 9 6 1 5 6 0 9 6 1 2 5 0 9 3 8 4 0 8 6 1 6 8 0 10 6 2 9 9 5 3 3 8 4 3 9 3 4 10 5 2 6 6 3 3 10 10 1 4 9 8 7 0 10 0 9 6 4 0 7 9 6 9 4 8 1 6 7 4 6 9 3 5 7 0 3 4 8 5 7 0 5 4 7 3 8 4 4 1 9 8 2 2 7 9 9 0 10 6 ...
output:
11
result:
ok 1 number(s): "11"
Test #67:
score: 0
Accepted
time: 0ms
memory: 1272kb
input:
1000 79 9 5 10 8 4 9 1 10 1 4 3 0 10 0 3 5 5 7 10 2 4 3 8 7 1 9 9 4 8 1 10 6 5 3 6 2 0 4 1 1 5 9 8 7 3 0 1 5 7 9 1 8 1 6 4 7 0 0 7 4 7 9 0 0 10 3 9 9 2 9 6 1 5 6 10 0 0 0 2 7 8 6 8 1 1 6 5 4 10 0 0 6 0 5 9 7 6 1 0 0 0 3 2 8 5 5 9 4 8 3 3 10 9 5 2 10 10 4 1 1 8 7 4 1 6 10 2 1 0 0 9 3 1 9 5 6 8 6 2 4 ...
output:
15
result:
ok 1 number(s): "15"
Test #68:
score: 0
Accepted
time: 0ms
memory: 1312kb
input:
1000 261 10 8 0 8 3 0 7 1 0 1 7 10 10 5 9 10 5 2 3 4 2 10 9 3 9 2 7 8 10 0 7 3 7 10 6 2 7 0 1 8 0 3 6 2 0 9 4 10 5 10 4 8 9 3 6 7 0 8 9 10 2 9 7 1 7 7 5 9 10 2 7 0 9 4 10 6 5 2 10 2 7 9 10 9 9 5 0 2 4 5 3 7 0 6 8 0 9 9 8 7 3 0 10 1 6 5 3 1 2 8 1 10 10 9 6 2 8 0 5 10 8 8 2 9 8 10 4 9 1 9 2 3 0 8 2 3 ...
output:
7
result:
ok 1 number(s): "7"
Test #69:
score: 0
Accepted
time: 0ms
memory: 1328kb
input:
1000 738 4 4 5 4 10 3 5 4 6 5 0 9 4 0 7 2 7 8 7 8 4 9 3 10 0 6 5 7 2 4 0 7 3 2 0 5 4 9 4 5 5 7 9 4 8 8 1 10 3 7 10 3 9 0 8 10 8 8 0 4 8 10 6 7 7 4 5 6 10 4 9 9 9 6 3 1 5 6 6 8 9 1 7 0 6 5 2 1 9 3 9 9 8 7 10 8 5 9 1 7 6 4 9 1 3 3 10 9 2 10 6 3 9 7 5 9 7 10 5 4 8 9 4 3 10 5 2 6 10 9 4 8 0 3 10 4 1 0 6...
output:
15
result:
ok 1 number(s): "15"
Test #70:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
1000 112 8 7 0 8 5 5 0 10 8 3 4 8 0 6 2 8 8 10 1 7 6 4 4 10 2 4 6 6 8 7 1 1 10 9 5 8 8 1 3 8 8 0 3 10 9 1 9 0 8 3 2 3 10 4 6 9 1 9 9 10 3 10 6 7 4 4 9 2 3 8 1 3 6 8 10 8 10 2 5 3 4 8 9 5 4 2 4 10 10 5 4 7 9 5 9 8 6 7 9 10 1 5 6 6 4 7 4 2 6 7 0 10 10 7 4 1 5 6 8 1 8 6 3 0 6 7 4 7 1 7 9 2 7 9 7 1 9 7 ...
output:
1
result:
ok 1 number(s): "1"
Test #71:
score: 0
Accepted
time: 0ms
memory: 1216kb
input:
1000 589 3 10 5 4 5 7 9 2 6 3 5 7 5 5 4 4 2 0 6 2 0 0 5 2 4 1 8 2 0 10 9 1 9 8 9 0 9 7 10 8 3 9 9 1 6 0 5 1 2 5 1 2 0 0 8 8 8 3 0 8 5 10 6 0 0 1 9 9 4 1 10 5 0 6 3 3 4 1 10 0 3 4 7 2 1 2 9 5 5 3 10 8 9 2 3 5 2 4 6 3 5 9 10 6 2 7 0 10 3 8 6 10 9 1 7 4 0 9 5 6 4 0 5 0 5 6 5 3 6 9 3 9 3 9 4 8 2 0 2 1 3...
output:
15
result:
ok 1 number(s): "15"
Test #72:
score: 0
Accepted
time: 0ms
memory: 1248kb
input:
1000 666 2 5 5 6 10 3 10 0 1 10 8 6 1 7 8 0 8 9 0 2 3 1 5 1 9 4 2 5 6 0 10 0 4 0 7 7 7 9 6 8 8 4 3 1 4 1 8 6 6 6 0 3 4 6 4 5 4 6 9 9 8 5 10 1 2 9 7 6 4 0 6 9 8 3 9 4 4 2 2 2 9 7 6 7 0 10 4 10 9 6 6 6 5 8 8 3 2 10 6 0 1 9 4 10 1 9 2 3 10 7 9 0 4 8 4 5 3 8 6 6 6 10 3 3 6 2 2 4 0 3 8 1 6 9 9 0 8 8 9 1 ...
output:
15
result:
ok 1 number(s): "15"
Test #73:
score: 0
Accepted
time: 6ms
memory: 1984kb
input:
200000 46640 6 7 9 3 3 9 0 8 6 6 1 6 0 10 1 4 9 5 6 7 1 3 8 9 1 2 9 9 3 7 6 0 3 4 2 9 1 9 6 3 6 7 3 6 3 6 7 3 0 9 0 3 1 1 1 5 1 10 8 1 9 6 6 1 10 9 8 6 7 8 7 8 5 8 8 5 0 10 3 4 1 8 9 7 7 4 4 8 9 7 9 7 6 4 9 9 2 4 2 9 9 8 4 0 9 10 0 2 9 7 7 1 3 6 3 0 5 0 10 8 7 2 0 2 8 10 8 7 4 3 8 1 3 4 3 6 0 9 6 9 ...
output:
11
result:
ok 1 number(s): "11"
Test #74:
score: 0
Accepted
time: 6ms
memory: 2100kb
input:
200000 195894 6 9 2 2 5 7 3 10 4 6 0 10 6 1 0 6 6 9 6 5 0 4 4 0 5 4 5 0 6 4 7 0 10 9 1 9 3 8 10 2 10 8 5 4 9 3 4 5 0 9 6 3 9 3 0 10 5 8 7 10 1 6 5 9 7 2 5 7 3 7 6 4 3 8 3 2 6 2 5 6 7 6 7 4 3 6 7 5 10 2 0 5 3 10 6 9 2 1 6 0 5 8 4 9 9 6 1 2 7 1 4 9 8 6 10 10 9 3 4 8 8 1 4 8 10 4 5 5 2 0 2 7 9 4 4 10 4...
output:
15
result:
ok 1 number(s): "15"
Test #75:
score: 0
Accepted
time: 5ms
memory: 1984kb
input:
200000 145148 10 7 9 9 3 2 9 9 8 3 2 6 0 7 2 10 5 0 5 10 10 5 0 2 6 2 8 10 6 1 0 3 2 6 1 2 10 8 6 3 3 7 0 1 0 7 1 6 8 4 10 3 6 5 3 6 9 10 9 5 1 9 6 9 4 2 5 0 2 1 0 1 5 1 9 10 10 5 0 9 7 8 4 2 3 1 5 10 8 4 9 5 4 1 10 1 3 5 2 7 2 5 8 10 2 4 9 6 8 6 0 1 9 1 10 0 8 3 2 2 5 7 9 6 9 2 1 10 4 5 6 0 9 1 4 7...
output:
15
result:
ok 1 number(s): "15"
Test #76:
score: 0
Accepted
time: 5ms
memory: 1988kb
input:
200000 70209 2 4 9 1 10 4 5 0 5 4 1 7 7 9 1 1 7 4 7 1 3 10 0 3 0 3 4 5 6 8 1 3 9 7 4 3 8 0 2 9 7 2 6 2 2 7 2 0 9 7 5 0 10 10 3 10 6 1 7 1 6 9 2 6 0 8 1 0 6 3 9 5 7 8 5 7 6 2 2 0 3 5 2 0 3 2 4 8 6 0 3 5 1 0 7 1 0 2 2 6 10 8 9 7 0 3 3 10 9 4 7 5 3 1 5 10 3 3 6 6 10 2 3 2 5 4 9 0 10 7 4 3 4 1 1 7 1 4 9...
output:
11
result:
ok 1 number(s): "11"
Test #77:
score: 0
Accepted
time: 5ms
memory: 2088kb
input:
200000 19463 1 6 9 1 1 3 1 6 9 0 0 3 1 4 7 9 9 4 10 3 9 0 7 2 4 2 0 7 5 1 10 5 1 0 7 3 0 10 9 1 8 7 8 10 3 4 6 5 6 10 4 1 7 1 2 3 4 0 1 7 10 5 1 3 4 5 9 4 10 2 7 3 5 1 0 1 5 2 8 2 1 7 0 8 10 0 9 3 4 3 1 2 3 2 7 1 9 10 6 2 7 5 9 8 8 1 7 4 0 6 7 8 7 5 1 5 10 0 4 2 8 0 3 4 7 2 6 10 1 1 5 10 10 6 9 0 8 ...
output:
8
result:
ok 1 number(s): "8"
Test #78:
score: 0
Accepted
time: 5ms
memory: 1992kb
input:
200000 136012 5 4 9 0 10 9 3 4 6 1 7 4 7 10 10 3 7 2 9 1 8 2 9 3 1 7 6 10 9 9 7 4 10 1 10 3 6 2 5 6 6 2 3 1 5 5 6 10 2 9 4 9 4 10 5 7 4 10 10 1 2 5 5 3 1 1 9 1 2 4 6 0 7 5 3 10 8 10 2 5 8 9 8 2 10 2 8 0 2 9 3 2 4 8 5 4 2 7 9 8 4 5 2 5 8 4 7 0 1 10 3 1 1 3 5 4 2 4 9 2 9 6 4 10 6 0 7 0 0 6 9 9 9 6 10 ...
output:
15
result:
ok 1 number(s): "15"
Test #79:
score: 0
Accepted
time: 5ms
memory: 1980kb
input:
200000 61074 8 2 9 6 5 4 10 4 0 1 6 0 1 8 4 5 5 3 2 10 4 7 9 5 5 1 9 2 8 3 4 0 6 9 3 0 9 9 2 9 10 7 5 6 7 6 7 5 7 8 10 5 4 8 4 3 5 1 1 7 3 8 1 0 9 1 9 1 5 9 0 7 5 8 8 6 7 6 0 7 8 3 6 3 10 4 6 1 4 4 5 0 1 10 6 0 2 5 9 7 4 1 6 6 2 2 4 8 9 4 3 2 2 3 7 2 9 3 7 2 10 1 2 10 5 1 10 9 10 8 10 5 4 3 7 5 2 3 ...
output:
15
result:
ok 1 number(s): "15"
Test #80:
score: 0
Accepted
time: 5ms
memory: 2044kb
input:
200000 10327 8 0 9 6 8 10 10 6 4 9 8 5 8 4 3 6 0 7 1 1 0 8 9 3 10 10 5 4 0 0 5 3 9 0 9 0 4 1 5 4 3 2 0 3 1 9 0 2 0 7 6 10 8 10 3 8 5 3 0 2 3 4 4 0 6 5 10 2 9 4 2 4 3 1 7 4 7 2 6 9 3 5 3 7 5 10 5 10 9 10 3 0 10 9 6 1 10 9 5 3 8 5 7 4 2 9 1 1 0 2 6 5 0 6 0 3 1 7 1 2 0 4 2 8 8 3 7 0 8 1 4 8 10 10 3 9 9...
output:
0
result:
ok 1 number(s): "0"
Test #81:
score: 0
Accepted
time: 5ms
memory: 2108kb
input:
200000 135389 1 2 9 5 6 8 1 4 8 9 7 8 6 6 10 4 10 1 7 10 10 9 1 4 3 0 1 10 4 10 9 9 5 0 5 1 7 4 2 10 7 7 6 4 10 6 8 0 4 10 6 7 5 8 7 0 2 1 2 4 6 8 4 8 2 0 6 6 9 6 7 8 5 5 10 4 10 2 8 1 3 10 1 5 9 1 7 5 7 5 4 0 1 4 7 8 0 6 5 5 9 2 7 4 6 4 9 5 5 7 6 2 0 9 7 6 8 7 9 10 1 3 7 7 7 1 4 9 10 2 8 7 10 7 4 5...
output:
15
result:
ok 1 number(s): "15"
Test #82:
score: 0
Accepted
time: 2ms
memory: 1988kb
input:
200000 18207 3 9 4 0 2 0 2 10 5 9 6 2 8 9 6 6 10 5 0 10 7 5 0 7 7 1 4 1 8 1 8 1 1 5 5 7 5 4 5 1 3 2 9 6 1 8 3 4 7 10 3 4 4 5 6 0 1 2 9 3 1 7 5 5 4 3 2 6 8 3 0 6 2 4 10 4 3 2 6 7 3 5 9 8 3 3 5 1 1 8 5 7 4 8 8 8 6 5 2 9 5 0 0 0 4 6 2 1 10 0 3 7 4 5 1 10 4 8 9 8 7 4 6 1 10 1 2 7 5 4 3 4 10 1 0 8 10 6 2...
output:
5
result:
ok 1 number(s): "5"
Test #83:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
10 7 175733148 56419428 571168608 738900064 336169888 480225097 467294240 526974092 487860083 830014813
output:
805306367
result:
ok 1 number(s): "805306367"
Test #84:
score: 0
Accepted
time: 0ms
memory: 1300kb
input:
10 8 104085429 609689921 815038655 245477095 409118727 778061033 949273639 144364084 776426030 381166212
output:
1056440319
result:
ok 1 number(s): "1056440319"
Test #85:
score: 0
Accepted
time: 0ms
memory: 1312kb
input:
10 6 32437710 457927705 353875992 678425200 187100274 412333457 357624109 393157857 138620904 563721391
output:
1073610751
result:
ok 1 number(s): "1073610751"
Test #86:
score: 0
Accepted
time: 0ms
memory: 1332kb
input:
10 1 960789992 306165490 302778746 185002232 965081821 5136685 839603509 641951630 427186851 746276571
output:
721395627
result:
ok 1 number(s): "721395627"
Test #87:
score: 0
Accepted
time: 0ms
memory: 1248kb
input:
10 4 889142273 859435983 546648792 986546556 374467148 302972621 952986688 554308914 715752798 2460677
output:
732929535
result:
ok 1 number(s): "732929535"
Test #88:
score: 0
Accepted
time: 0ms
memory: 1272kb
input:
10 8 817494554 707673768 790518839 83058171 447415987 305841265 434966086 508135395 4318744 890048566
output:
1073741823
result:
ok 1 number(s): "1073741823"
Test #89:
score: 0
Accepted
time: 0ms
memory: 1324kb
input:
10 7 745846835 555911552 34388884 589635203 225397533 603677201 843316557 420492679 292884691 441199964
output:
805306367
result:
ok 1 number(s): "805306367"
Test #90:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
10 6 379231824 109182045 278258930 391179527 298346372 901513138 325295956 669286452 950046858 623755143
output:
532676607
result:
ok 1 number(s): "532676607"
Test #91:
score: 0
Accepted
time: 0ms
memory: 1224kb
input:
10 6 602551397 957419830 522128976 897756559 781360628 904381782 733646427 286676444 943645513 174906542
output:
805306367
result:
ok 1 number(s): "805306367"
Test #92:
score: 0
Accepted
time: 0ms
memory: 1312kb
input:
10 2 461290697 983250014 935845612 43507868 339019935 420949080 711796819 6808031 666038501 60097875
output:
398114426
result:
ok 1 number(s): "398114426"
Test #93:
score: 0
Accepted
time: 0ms
memory: 1220kb
input:
1000 463 898178314 444197951 272661962 963232500 430212823 39111527 575948125 427939103 380167029 53901100 621987553 873222511 238299357 45299397 425877706 353288909 861695623 581148008 285171883 421104440 337441988 337610620 555419837 936602843 492538371 713210706 102817243 978574530 592488414 8844...
output:
536870911
result:
ok 1 number(s): "536870911"
Test #94:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
1000 451 746416099 688067997 74206285 741214047 728048759 816058218 488305409 421537759 562722208 592958643 194790169 706194176 25918313 229836540 622811551 638099313 207820084 952393427 583480753 392823073 743556988 943723601 46700272 301942798 63769234 244574384 590885876 645483784 257528960 35372...
output:
1040187391
result:
ok 1 number(s): "1040187391"
Test #95:
score: 0
Accepted
time: 0ms
memory: 1292kb
input:
1000 439 299686591 226905334 875750610 814162885 25884695 929441397 442131890 710103706 113873606 795579697 767592786 497696644 444941051 488002610 524778103 217877009 553944546 618606138 881789622 406010903 486108477 959901998 906576928 35878973 340032806 70905353 668889092 607360330 291165727 5280...
output:
536870911
result:
ok 1 number(s): "536870911"
Test #96:
score: 0
Accepted
time: 0ms
memory: 1312kb
input:
1000 427 147924376 470775381 382327641 592144432 323720631 706388088 354489174 367265872 296428786 334637240 635362694 994231821 568996496 41135972 426744655 502687413 605101716 989851557 475065782 714166025 597256185 976080395 397857363 401218930 542667450 602269032 156957724 347898512 956206275 70...
output:
536870911
result:
ok 1 number(s): "536870911"
Test #97:
score: 0
Accepted
time: 0ms
memory: 1308kb
input:
1000 415 996162161 419678135 183871965 370125979 252960347 524803975 603282947 655831819 257645601 537258294 503132602 417138068 356615453 520640407 960114989 451061328 951226178 287468047 773374651 685884657 708403893 992258793 889137799 135155105 523963731 428600001 308589867 309775058 326279530 8...
output:
939524095
result:
ok 1 number(s): "939524095"
Test #98:
score: 0
Accepted
time: 0ms
memory: 1228kb
input:
1000 107 549432654 958515473 985416290 779511306 550796284 301750665 220672939 944397766 440200781 76315836 75935218 208640536 775638191 73773769 862081541 735871732 2383347 953680759 71683519 699072487 450955382 8437189 43981745 500495062 95194594 959963679 796658500 50313240 286287368 50849683 844...
output:
264241151
result:
ok 1 number(s): "264241151"
Test #99:
score: 0
Accepted
time: 0ms
memory: 1336kb
input:
1000 391 102703146 202385519 786960613 852460145 553664928 415133844 469466712 232963712 991352180 278936890 943705127 705175713 194660927 626907131 59015384 20682135 53540517 619893469 664959680 7227608 562103090 319582878 240294889 529398529 297829238 786294649 284727132 12189787 656360624 5200981...
output:
536870911
result:
ok 1 number(s): "536870911"
Test #100:
score: 0
Accepted
time: 0ms
memory: 1216kb
input:
1000 83 582344711 151288273 588504937 630441692 851500864 192080535 718260485 226562367 173907359 112961725 221540452 128081961 392345301 885073202 666014646 600459832 399664979 622542668 668301258 389011658 304654579 335761276 731575326 599771194 574092810 612625618 731326568 47695261 616368463 694...
output:
968884221
result:
ok 1 number(s): "968884221"
Test #101:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
1000 71 135615204 690125611 95081968 703390530 149336799 305463714 335650477 515128314 725058758 315582779 89310360 624617137 811368038 69610344 199384978 253866455 745789441 288755378 966610127 992134072 710769579 351939673 591451981 333707369 145323673 438956587 219395200 419637224 986441719 23725...
output:
385875967
result:
ok 1 number(s): "385875967"
Test #102:
score: 0
Accepted
time: 0ms
memory: 1296kb
input:
1000 167 530041608 103842246 240833277 261049838 665904098 578581398 424378285 606117522 610250091 139672464 742315298 406158556 632874305 976466893 400547509 757511062 418726803 413837082 513498182 864226393 741122852 564520001 885352967 49901645 169472910 990392033 872715407 919958343 353713808 60...
output:
469762047
result:
ok 1 number(s): "469762047"
Test #103:
score: 0
Accepted
time: 8ms
memory: 2020kb
input:
200000 87349 722823721 131850466 393916337 866329022 459158014 989424635 929882039 774059751 129276465 59724046 211112586 774432944 215981825 69157745 322476089 724965578 177721883 602102510 942991219 944712477 516289583 696187792 753613271 332209649 492734230 917599232 394034607 865191372 983907306...
output:
805306367
result:
ok 1 number(s): "805306367"
Test #104:
score: 0
Accepted
time: 8ms
memory: 1996kb
input:
200000 54208 671726475 638427499 98268956 164164957 867508485 238218407 218447985 661647638 331897519 632526663 707647763 562051900 769115188 602528079 902253786 776122748 548967302 900411379 251146340 687263966 532467981 261097155 118953226 903440513 319065200 700635156 60943861 530231918 158188525...
output:
536870911
result:
ok 1 number(s): "536870911"
Test #105:
score: 0
Accepted
time: 8ms
memory: 2100kb
input:
200000 164172 915596522 439971823 876250503 462000894 349487884 855608400 507013932 212799037 870955062 500296571 835586720 686107346 322248550 504494631 187064189 122247209 215180012 198720248 632930390 798411674 548646378 752377591 147856693 516140573 850428878 483671080 96449335 900305174 6274370...
output:
1073741823
result:
ok 1 number(s): "1073741823"
Test #106:
score: 0
Accepted
time: 8ms
memory: 2108kb
input:
200000 98327 454433859 536483438 949199342 759836830 462871063 104402172 795579879 100386924 704979896 441695407 627089187 105130083 506785692 701428475 135438104 468371671 512796504 791996409 941085512 835930454 859792067 243658026 513196650 87371436 971727139 340335931 763358590 860313013 87534718...
output:
1006632959
result:
ok 1 number(s): "1006632959"
Test #107:
score: 0
Accepted
time: 8ms
memory: 2068kb
input:
200000 65187 403336613 43060470 432213597 762705474 944850462 648163237 157774753 282942104 612633658 309465316 755028144 892749040 354886346 603395028 420248508 519528841 179009214 90305277 249240633 652110871 875970464 103534681 247132825 658602301 503090817 123371855 798864064 230386268 49628404 ...
output:
805306367
result:
ok 1 number(s): "805306367"
Test #108:
score: 0
Accepted
time: 8ms
memory: 2068kb
input:
200000 199342 647206659 844604794 505162435 60541410 353200932 970585938 446340700 834093503 446658493 882267933 546530612 311771777 613052417 136765360 26203 865653303 550254633 388614146 925991975 763258579 892148862 889782410 981069002 934865873 329421786 611440488 465773319 895426815 518876916 5...
output:
1073741823
result:
ok 1 number(s): "1073741823"
Test #109:
score: 0
Accepted
time: 5ms
memory: 2104kb
input:
200000 166202 186043997 351181826 914547763 989781127 835180332 514347002 734906647 16648682 354312255 455070549 338033080 435827222 797589559 743764621 284836608 211777764 552903832 350486526 234147096 800777360 539731039 381062845 346408957 137500516 492189244 763072632 132682573 560467362 6931581...
output:
1073741823
result:
ok 1 number(s): "1073741823"
Test #110:
score: 0
Accepted
time: 8ms
memory: 2100kb
input:
200000 133061 134946751 784129931 987496602 992649771 243530802 836769703 23472593 977865498 483304381 322840457 465972036 223446179 350722921 645731174 864614304 262934934 219116543 353828103 247334926 911925068 555909436 240939500 80345132 118796796 318520214 546108556 463155339 225507909 16240664...
output:
1073741823
result:
ok 1 number(s): "1073741823"
Test #111:
score: 0
Accepted
time: 8ms
memory: 2092kb
input:
200000 67216 378816797 585674254 765478148 290485706 725510201 380530767 312038540 160420677 390958143 895643074 257474504 642468916 903856284 842665018 518020927 314092104 885329254 652136973 219053559 654476556 867055126 732219936 740652381 690027660 849883892 34177187 835097302 595581165 33668786...
output:
805306367
result:
ok 1 number(s): "805306367"
Test #112:
score: 0
Accepted
time: 8ms
memory: 2068kb
input:
200000 86344 87500724 805054491 691733676 470616516 335064373 469258575 403027748 414208229 215047829 843615304 744048632 463975183 147149320 380264037 21665533 281996758 641814738 199025028 722549661 979797121 448231673 394717141 866912074 9144188 991253921 687497395 335418421 257820546 412269174 3...
output:
536870911
result:
ok 1 number(s): "536870911"
Extra Test:
score: 0
Extra Test Passed