QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#848348#9915. General SymmetrywdnmdwrnmmpAC ✓1350ms48616kbC++141.7kb2025-01-08 19:47:152025-01-08 19:47:15

Judging History

你现在查看的是最新测评结果

  • [2025-01-08 19:47:15]
  • 评测
  • 测评结果:AC
  • 用时:1350ms
  • 内存:48616kb
  • [2025-01-08 19:47:15]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
// #define int long long
#define rep(i,j,k) for(int i=(j);i<=(k);i++)
#define per(i,j,k) for(int i=(j);i>=(k);i--)
#define pb emplace_back
#define fi first
#define se second
using vi=vector<int>;
using pi=pair<int,int>;

template<typename T> bool chmin(T &x,const T &y){
	if(y<x){
		x=y;
		return true;
	}
	return false;
}
template<typename T> bool chmax(T &x,const T &y){
	if(y>x){
		x=y;
		return true;
	}
	return false;
}

const int N=2e5+5, A=1005, B=256, NB=800;

using bs=bitset<N>;

int n, k, a[N];
bs cur, f[NB], g[A];

signed main(){
	ios::sync_with_stdio(0);cin.tie(0);
	
	cin>>n>>k;
	rep(i,1,n){
		cin>>a[i];
	}
	rep(i,1,n){
		cur = cur>>1 & g[a[i]];
		cur[i]=1;
		if(i>1) cur[i-1]=(abs(a[i]-a[i-1])<=k);
		if(i%B==0){
			f[i/B]=cur;
		}
		rep(j, max(1,a[i]-k), min(A-1,a[i]+k)){
			g[j][i]=1;
		}
	}
	rep(i,1,n){
		int le=(i+B-1)/B, ri=n/B;
		int ans=0;
		if(le<=ri){
			while(le<ri){
				int mid=(le+ri+1)/2;
				int r=mid*B, l=i*2-r;
				if(l>0 && f[r/B][l]){
					le=mid;
				}
				else{
					ri=mid-1;
				}
			}
			ans=max(0, le*B-B-i);
		}
		while(i+ans<n && i-ans>1 && abs(a[i+ans+1]-a[i-ans-1])<=k){
			ans++;
		}
		cout<< ans*2+1 <<' ';
	}
	cout<<'\n';
	rep(i,2,n){
		int le=(i+B)/B, ri=n/B;
		int ans=0;
		if(le<=ri){
			while(le<ri){
				int mid=(le+ri+1)/2;
				int r=mid*B, l=i*2-1-r;
				if(l>0 && f[r/B][l]){
					le=mid;
				}
				else{
					ri=mid-1;
				}
			}
			ans=max(0, le*B-B-i);
		}
		// cout<<"?"<<i<<' '<<ans<<endl;
		while(i+ans<=n && i-1-ans>=1 && abs(a[i+ans]-a[i-ans-1])<=k){
			ans++;
		}
		cout<< ans*2 <<' ';
	}
	cout<<'\n';
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3720kb

input:

5 0
1 2 1 2 1

output:

1 3 5 3 1 
0 0 0 0 

result:

ok 9 numbers

Test #2:

score: 0
Accepted
time: 1ms
memory: 5672kb

input:

5 1
1 2 1 3 1

output:

1 3 5 3 1 
2 2 0 0 

result:

ok 9 numbers

Test #3:

score: 0
Accepted
time: 1ms
memory: 5676kb

input:

10 0
1 2 3 4 500 5 501 6 499 503

output:

1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 

result:

ok 19 numbers

Test #4:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

10 1
1 2 3 4 500 5 501 6 499 503

output:

1 1 1 1 3 3 5 1 1 1 
2 2 2 0 0 0 0 0 0 

result:

ok 19 numbers

Test #5:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

10 2
1 2 3 4 500 5 501 6 499 503

output:

1 3 3 1 3 5 5 3 1 1 
2 2 2 0 0 0 0 0 0 

result:

ok 19 numbers

Test #6:

score: 0
Accepted
time: 1ms
memory: 7840kb

input:

10 10
1 2 3 4 500 5 501 6 499 503

output:

1 3 3 1 3 5 5 3 1 1 
2 4 2 0 0 0 0 0 2 

result:

ok 19 numbers

Test #7:

score: 0
Accepted
time: 497ms
memory: 18384kb

input:

100000 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

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 175 177...

result:

ok 199999 numbers

Test #8:

score: 0
Accepted
time: 400ms
memory: 16116kb

input:

100000 0
2 1 2 1 1 1 1 1 2 1 2 1 1 1 1 1 2 1 1 2 1 2 1 2 2 1 1 1 2 2 2 2 2 1 1 2 2 1 2 1 2 2 1 1 1 2 2 2 1 2 1 2 2 1 2 1 2 1 1 2 2 2 1 2 2 2 1 1 2 2 2 2 1 1 1 1 2 1 2 2 1 2 1 1 2 2 1 1 1 2 1 2 1 2 2 2 1 2 1 1 1 2 1 2 1 2 1 1 2 1 1 2 2 1 1 2 2 1 1 2 1 2 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 2...

output:

1 3 3 1 3 11 3 1 3 17 3 1 3 9 3 1 5 1 1 3 5 5 3 1 1 1 7 1 1 3 9 3 1 1 1 1 1 3 11 3 1 1 1 7 1 1 5 1 3 7 3 1 1 3 5 5 3 1 1 1 5 1 13 1 5 1 1 1 1 3 3 1 1 3 3 1 3 3 1 1 3 3 1 1 1 1 1 5 1 3 5 5 3 1 9 1 3 3 1 9 1 3 5 9 5 3 1 1 7 1 1 1 1 1 1 1 1 1 1 3 7 3 1 3 3 1 1 3 3 1 1 3 5 9 5 3 1 3 13 3 1 3 9 3 1 5 1 1...

result:

ok 199999 numbers

Test #9:

score: 0
Accepted
time: 498ms
memory: 16024kb

input:

100000 1
2 2 1 2 1 2 1 1 2 1 1 2 1 2 2 2 1 1 1 1 2 2 2 1 1 2 1 2 2 2 2 2 1 1 2 2 2 1 2 2 2 2 2 1 2 1 2 2 1 2 1 2 2 1 2 2 1 2 2 1 1 1 2 1 1 1 2 1 2 2 1 2 2 2 2 1 2 2 1 2 2 2 1 1 1 2 1 1 1 2 1 2 2 1 2 2 1 1 1 1 2 2 2 1 1 2 2 2 1 2 1 2 2 2 1 1 1 1 2 2 1 1 1 1 2 1 2 2 2 2 1 1 1 2 1 2 1 1 2 2 1 1 2 2 1 2...

output:

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 175 177...

result:

ok 199999 numbers

Test #10:

score: 0
Accepted
time: 675ms
memory: 38720kb

input:

100000 1000
732 864 923 542 711 842 80 128 371 633 258 351 763 694 384 254 328 863 981 613 558 596 470 246 925 811 893 9 872 685 177 696 665 294 972 124 915 480 67 558 391 433 538 415 832 840 206 489 895 964 952 891 671 373 257 528 337 497 296 929 154 465 150 783 305 849 107 178 417 51 877 508 13 81...

output:

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 175 177...

result:

ok 199999 numbers

Test #11:

score: 0
Accepted
time: 961ms
memory: 25596kb

input:

200000 1
2 2 2 1 2 1 1 2 2 2 2 2 1 2 2 1 1 1 2 1 1 1 2 2 1 2 1 2 2 1 1 2 2 1 1 2 1 2 1 1 2 1 1 2 1 2 1 2 1 1 2 2 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 2 1 2 2 1 1 1 2 1 1 1 2 2 2 2 1 2 2 2 2 2 2 1 1 1 2 2 1 2 1 2 2 2 1 1 2 2 1 2 2 1 1 2 2 1 1 2 2 2 1 2 1 2 1 1 2 2 1 1 2 2 2 2 2 2 1 1 1 2 2 2 1 2 2 1 2 1 1 1...

output:

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 175 177...

result:

ok 399999 numbers

Test #12:

score: 0
Accepted
time: 828ms
memory: 25816kb

input:

200000 0
6 3 5 7 5 13 23 15 22 12 5 14 7 25 14 20 26 23 20 5 8 15 18 14 3 11 15 23 10 12 13 3 9 11 24 11 17 12 1 17 20 3 4 6 9 10 24 2 15 9 26 6 11 19 11 22 20 12 22 1 13 3 19 9 6 21 2 5 2 2 5 13 14 25 17 4 4 10 15 10 20 21 9 7 18 18 17 10 10 25 7 26 12 13 23 2 23 25 9 8 10 11 5 13 19 24 1 18 22 13 ...

output:

1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #13:

score: 0
Accepted
time: 809ms
memory: 26236kb

input:

200000 1
20 20 23 14 3 18 24 19 1 16 11 2 15 4 17 19 6 9 4 21 24 16 22 9 2 19 12 4 6 1 23 20 4 21 10 12 7 17 16 17 25 16 25 16 3 1 12 4 11 24 7 11 8 5 4 22 9 15 7 20 10 22 16 16 5 26 21 12 11 14 20 25 24 7 9 16 21 17 20 12 26 21 21 7 9 9 13 13 20 9 13 14 11 22 16 26 11 26 3 14 19 9 20 18 12 26 9 9 1...

output:

1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 3 1 3 5 3 1 1 1 1 3 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #14:

score: 0
Accepted
time: 809ms
memory: 25676kb

input:

200000 2
4 10 23 18 14 19 13 15 7 24 21 3 24 18 20 4 3 4 14 16 15 6 11 1 1 17 13 19 11 11 21 6 13 10 11 24 15 17 2 18 7 16 8 23 20 11 8 6 12 16 15 17 23 18 26 1 2 14 1 16 21 23 17 24 4 14 22 16 2 22 5 11 3 11 4 10 19 24 13 5 11 17 8 6 22 19 9 15 7 4 18 3 14 9 17 6 25 6 5 12 2 11 10 9 16 2 26 4 4 19 ...

output:

1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 3 1 1 5 1 1 1 1 1 1 3 3 1 1 1 1 1 3 1 1 1 1 3 1 3 3 1 1 1 1 1 1 1 1 3 1 3 1 1 1 1 3 3 1 1 1 3 1 1 1 7 1 1 1 1 3 5 5 3 1 1 1 1 3 1 1 1 1 1 1 1 3 1 1 3 1 1 1 1 1 3 1 1 1 3 1 3 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 3 1 1 1 1 3 1 1 1 3 1 3 1 1 1 1 1 1 1 3 1 1 1 3 1 1 1 1 3 1 ...

result:

ok 399999 numbers

Test #15:

score: 0
Accepted
time: 842ms
memory: 25656kb

input:

200000 5
12 3 8 19 17 21 1 15 1 11 13 20 26 11 3 25 4 4 11 4 8 9 11 26 16 24 4 4 8 10 18 26 4 15 7 4 14 14 10 10 18 8 21 12 14 21 12 4 16 20 16 17 25 25 2 14 20 13 24 18 15 6 12 8 2 12 21 1 18 16 11 8 4 18 12 11 1 11 8 17 4 8 1 14 17 13 26 23 14 4 24 8 24 8 22 19 6 14 11 19 4 19 11 18 21 11 12 22 5 ...

output:

1 3 1 1 3 1 1 3 3 1 1 1 1 1 1 3 1 1 5 5 5 3 1 3 3 1 1 3 1 1 1 1 1 3 1 1 1 3 7 1 3 7 5 1 1 3 1 11 1 3 3 1 1 1 1 1 3 5 5 1 1 3 3 1 3 1 1 5 1 1 1 1 1 1 1 1 11 1 1 13 1 5 1 1 3 1 1 1 1 1 3 5 5 3 1 1 3 5 7 1 7 1 3 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 1 1 3 1 1 1 1 3 1 3 1 3 3 3 1 1 1 1 3 1 1 1 5 1 1 1 5 1...

result:

ok 399999 numbers

Test #16:

score: 0
Accepted
time: 833ms
memory: 25364kb

input:

200000 10
26 14 13 12 9 5 26 4 22 21 22 4 21 12 14 9 16 19 8 5 21 23 15 10 22 23 8 4 15 3 12 13 9 25 3 22 3 6 21 26 17 20 25 5 14 14 16 12 18 1 25 7 22 26 17 14 9 4 18 3 19 22 7 2 5 22 22 2 13 13 4 8 8 20 2 22 4 13 26 22 7 12 15 1 9 7 18 12 21 20 7 2 24 11 4 18 23 12 19 10 19 18 12 2 22 20 4 23 22 1...

output:

1 1 3 7 3 1 3 3 1 17 1 11 5 9 5 5 9 7 1 1 1 5 1 5 1 1 1 3 7 9 5 3 1 11 9 3 1 1 1 3 7 3 1 1 9 7 9 3 1 7 5 3 1 5 1 3 5 3 9 3 1 1 1 21 1 1 1 13 1 5 5 5 1 3 7 5 3 1 7 1 3 3 1 5 7 3 3 3 3 1 1 1 17 1 7 1 3 5 13 5 13 9 1 5 1 1 5 1 3 3 3 1 1 1 5 5 5 1 1 1 5 1 7 1 3 3 1 5 5 1 15 5 5 3 1 1 1 3 1 7 7 5 3 7 5 3...

result:

ok 399999 numbers

Test #17:

score: 0
Accepted
time: 887ms
memory: 48352kb

input:

200000 0
78 83 697 374 251 9 304 789 96 113 710 550 745 615 81 791 236 204 418 516 694 117 215 769 711 226 434 667 353 944 343 272 693 704 186 337 14 69 695 439 675 778 352 348 345 26 731 758 112 670 793 519 697 155 281 255 902 945 314 240 218 189 908 369 173 903 792 781 97 197 507 793 968 383 856 4...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #18:

score: 0
Accepted
time: 858ms
memory: 48020kb

input:

200000 1
206 631 443 851 313 786 288 73 252 999 446 590 835 48 404 709 367 954 436 564 443 599 724 152 568 138 655 16 665 814 762 542 280 840 295 234 743 144 637 654 968 893 645 802 534 110 839 297 730 329 611 867 982 679 177 490 493 462 465 45 921 998 243 647 908 565 577 904 400 35 56 579 983 598 4...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #19:

score: 0
Accepted
time: 880ms
memory: 47976kb

input:

200000 2
926 772 997 33 567 51 271 765 215 477 589 333 925 289 727 818 281 512 158 509 191 376 42 832 833 346 876 877 786 685 988 620 83 272 404 346 473 219 170 765 965 815 426 961 531 193 354 29 644 796 725 623 76 604 177 428 84 83 216 361 433 615 283 733 939 122 554 732 999 169 709 365 998 110 502...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #20:

score: 0
Accepted
time: 928ms
memory: 48540kb

input:

200000 4
478 461 1000 884 178 604 133 741 230 546 277 221 106 260 565 652 726 525 898 503 585 740 60 86 547 275 614 791 514 721 632 969 257 137 517 354 125 665 349 386 358 340 500 870 716 256 977 813 880 921 760 918 646 756 969 897 754 325 119 969 351 41 657 289 897 853 828 275 389 629 103 42 540 29...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #21:

score: 0
Accepted
time: 917ms
memory: 48172kb

input:

200000 8
879 942 7 499 1000 391 451 693 260 275 739 299 979 905 537 216 408 550 379 682 475 659 905 915 383 324 987 130 84 306 729 667 526 274 552 667 748 261 300 229 850 6 136 287 687 295 327 677 752 172 919 21 107 846 849 346 709 217 731 210 485 190 702 912 918 98 351 578 169 869 506 483 600 972 5...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #22:

score: 0
Accepted
time: 927ms
memory: 48028kb

input:

200000 16
652 297 291 69 279 118 770 80 340 229 135 261 543 754 977 123 34 264 226 750 153 988 65 798 92 840 280 134 376 970 566 885 615 722 93 904 603 951 29 782 999 387 368 923 950 42 676 861 10 992 436 138 670 360 727 1000 604 357 304 84 921 781 356 324 940 632 87 901 794 526 687 245 237 398 487 ...

output:

1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 3 1 1 1 3 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #23:

score: 0
Accepted
time: 972ms
memory: 48288kb

input:

200000 32
290 187 913 87 434 212 778 703 889 416 679 815 876 423 800 978 561 734 652 247 558 894 947 40 815 803 444 933 612 237 752 431 56 26 957 493 355 226 468 274 33 906 314 389 858 554 347 439 152 511 723 417 947 458 555 587 112 286 482 950 998 390 297 123 672 125 518 906 646 916 170 860 819 327...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 3 1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #24:

score: 0
Accepted
time: 989ms
memory: 48188kb

input:

200000 64
290 433 467 932 712 40 33 501 428 520 183 491 170 297 835 633 554 586 488 206 338 51 706 390 103 441 804 191 88 45 469 332 563 701 958 245 910 770 390 381 967 721 958 187 516 538 638 890 365 844 518 744 837 551 822 515 452 704 774 655 583 560 662 865 351 158 984 872 750 480 33 70 829 510 3...

output:

1 1 1 1 1 1 1 1 3 1 3 3 1 1 1 1 3 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 1 1 1 3 1 1 1 1 3 3 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 ...

result:

ok 399999 numbers

Test #25:

score: 0
Accepted
time: 1041ms
memory: 48116kb

input:

200000 128
525 799 655 270 848 167 388 369 483 893 248 422 510 722 719 118 936 567 954 126 891 12 564 600 196 525 950 863 864 384 668 878 978 24 694 362 246 669 592 203 458 58 866 223 639 22 768 136 220 619 986 881 675 890 206 940 123 813 585 215 764 348 2 850 294 953 728 450 722 804 678 314 535 407...

output:

1 1 1 1 3 1 1 3 1 1 1 1 1 1 1 1 1 5 1 3 3 1 1 1 3 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 3 1 3 7 3 1 1 1 1 1 1 1 3 1 1 3 1 3 1 1 3 1 3 1 1 1 1 1 1 1 1 3 3 1 3 7 3 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 5 1 1 3 3 1 1 1 3 3 3 1 1 1 1 1 1 1 1 3 1 1 1 1 1 3 3 1 1 1 1 5 1 3 1 1 1 1 1 3 ...

result:

ok 399999 numbers

Test #26:

score: 0
Accepted
time: 1086ms
memory: 48152kb

input:

200000 256
265 118 384 665 977 983 505 74 878 707 33 518 364 273 699 635 102 115 62 551 558 55 565 785 369 39 887 606 641 640 71 373 353 670 68 236 548 151 266 169 15 988 136 985 307 883 57 636 516 815 571 391 628 86 18 521 448 602 878 406 26 1 600 999 22 822 577 904 373 677 836 801 292 714 895 118 ...

output:

1 3 1 1 1 1 1 1 1 1 3 1 3 1 1 1 1 11 1 1 1 5 1 5 1 1 1 3 3 1 1 1 1 1 1 1 5 1 3 3 1 3 3 7 5 3 7 1 3 5 1 3 1 1 1 1 3 1 3 1 1 1 1 1 5 1 3 5 3 1 7 1 5 1 1 1 1 1 1 7 3 3 3 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 3 7 1 1 9 3 1 3 1 5 1 9 1 1 1 3 3 1 3 5 5 5 1 1 1 1 1 3 3 3 1 3 1 1 5 1 5 1 1 1 7 1 1 1 1 1 1 1 1 1 1 3...

result:

ok 399999 numbers

Test #27:

score: 0
Accepted
time: 1166ms
memory: 48056kb

input:

200000 512
643 554 937 370 810 367 285 735 326 952 366 365 402 977 264 192 982 266 619 954 731 607 197 817 872 926 687 758 696 836 539 383 562 280 869 309 528 543 759 159 624 206 290 966 630 795 604 31 208 69 365 996 768 287 217 259 262 937 713 997 108 535 713 736 784 344 188 782 413 736 444 292 754...

output:

1 3 5 7 3 1 5 3 9 7 1 7 1 5 1 1 15 3 1 5 5 1 13 1 19 11 13 15 5 7 9 3 5 11 9 11 21 11 7 7 29 3 1 3 19 3 1 3 9 3 1 23 1 1 9 3 1 3 13 1 7 1 3 17 3 1 11 13 17 5 7 13 13 17 3 1 3 5 1 9 21 27 7 7 3 1 3 5 13 13 11 21 9 17 5 33 1 1 3 29 3 1 11 1 3 5 15 3 7 5 7 3 13 5 1 1 5 7 3 11 7 11 9 1 5 21 1 5 1 3 3 1 ...

result:

ok 399999 numbers

Test #28:

score: 0
Accepted
time: 1230ms
memory: 48540kb

input:

200000 777
757 894 258 43 980 45 458 527 332 516 109 449 138 316 3 568 512 371 110 210 2 820 798 613 338 956 950 272 805 70 740 847 220 688 284 386 516 180 462 990 422 920 76 394 496 574 189 516 865 133 581 570 177 486 114 529 695 296 56 858 217 164 526 456 608 537 855 11 977 97 499 39 813 74 91 894...

output:

1 3 1 3 9 11 13 5 7 9 21 13 15 27 21 19 33 27 7 13 11 1 7 5 7 41 53 3 47 19 61 33 53 67 9 11 69 23 1 57 27 53 31 35 9 5 41 43 45 35 21 39 45 9 23 25 29 21 63 97 15 13 7 7 77 11 13 71 57 41 83 5 5 3 1 11 9 7 23 21 25 17 21 23 33 91 9 27 33 27 43 33 3 43 41 55 23 21 9 7 37 51 1 17 1 65 49 71 65 1 3 31...

result:

ok 399999 numbers

Test #29:

score: 0
Accepted
time: 1240ms
memory: 48092kb

input:

200000 900
354 686 330 172 401 650 820 54 199 443 50 786 656 686 996 934 413 582 61 960 461 632 484 566 872 672 603 288 98 362 99 585 710 570 566 865 328 420 876 766 178 917 543 230 288 607 390 302 964 577 414 702 218 69 916 619 445 545 644 916 393 870 958 542 294 492 875 712 588 500 804 495 737 148...

output:

1 3 5 7 9 11 13 15 17 19 21 23 3 11 29 31 3 35 37 39 41 43 45 47 49 51 53 55 57 37 61 63 65 29 69 71 51 75 77 79 81 83 69 65 59 91 93 57 97 69 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 23 101 105 97 139 141 143 145 117 149 1 137 155 127 75 161 147 165 167 71 171 173 65 57 179 83 57...

result:

ok 399999 numbers

Test #30:

score: 0
Accepted
time: 1327ms
memory: 48012kb

input:

200000 950
136 215 917 694 253 805 433 155 301 395 489 800 463 495 693 982 571 21 63 706 743 250 655 709 109 201 378 259 538 986 647 573 537 926 649 919 286 580 520 882 244 992 911 107 744 270 271 818 251 451 827 116 467 709 906 114 770 838 721 312 974 885 638 535 768 428 750 931 933 427 351 405 64 ...

output:

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 1 35 37 39 41 43 45 11 49 51 53 55 57 23 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 65 99 101 103 105 107 109 51 113 115 117 83 121 39 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 139 93 179 ...

result:

ok 399999 numbers

Test #31:

score: 0
Accepted
time: 1350ms
memory: 48608kb

input:

200000 1000
799 407 765 661 522 510 883 125 877 843 214 503 56 776 884 519 44 591 908 119 730 610 116 269 418 825 4 378 269 40 705 836 19 365 883 716 814 974 558 929 741 761 693 748 658 979 274 434 557 386 672 653 862 171 714 3 534 964 968 405 791 771 721 450 696 429 740 761 298 336 150 514 685 954 ...

output:

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 175 177...

result:

ok 399999 numbers

Test #32:

score: 0
Accepted
time: 898ms
memory: 25076kb

input:

200000 0
513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513 408 513...

output:

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 175 177...

result:

ok 399999 numbers

Test #33:

score: 0
Accepted
time: 910ms
memory: 28944kb

input:

200000 15
533 404 532 413 535 414 529 409 536 405 523 405 530 405 535 407 532 414 526 410 529 404 524 410 527 413 531 409 537 406 534 414 526 415 526 401 527 410 537 400 533 400 533 414 536 412 538 414 537 414 525 412 537 409 526 404 528 405 523 409 535 414 538 400 526 403 531 402 535 408 532 414 53...

output:

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 175 177...

result:

ok 399999 numbers

Test #34:

score: 0
Accepted
time: 991ms
memory: 35020kb

input:

200000 70
404 584 390 570 384 562 415 552 417 562 424 574 425 555 431 586 409 564 412 612 413 568 392 619 413 587 393 617 375 612 402 615 439 591 386 612 441 601 429 603 397 558 423 559 433 572 417 554 380 585 399 585 423 612 404 553 443 568 412 588 386 560 395 617 443 586 400 575 443 565 392 598 40...

output:

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 175 177...

result:

ok 399999 numbers

Test #35:

score: 0
Accepted
time: 1128ms
memory: 47268kb

input:

200000 233
632 492 486 561 664 527 568 506 503 547 512 426 679 514 534 543 546 429 532 430 626 381 593 368 634 542 637 375 610 495 666 474 665 376 526 360 562 446 690 418 598 527 514 464 669 378 628 567 659 584 645 564 612 507 611 534 595 386 565 542 639 358 486 477 576 509 625 473 685 358 675 553 6...

output:

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 175 177...

result:

ok 399999 numbers

Test #36:

score: 0
Accepted
time: 1212ms
memory: 48268kb

input:

200000 433
439 540 407 539 431 528 485 662 354 671 335 679 288 592 382 887 504 905 374 649 130 613 198 519 371 529 320 726 533 886 373 746 168 749 285 834 542 640 196 788 556 766 522 922 509 940 292 777 349 786 495 813 480 637 142 917 258 675 206 816 163 855 503 616 474 567 435 625 450 661 362 620 4...

output:

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 175 177...

result:

ok 399999 numbers

Test #37:

score: 0
Accepted
time: 862ms
memory: 24260kb

input:

200000 0
815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815 968 565 815...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #38:

score: 0
Accepted
time: 915ms
memory: 47676kb

input:

200000 70
836 626 360 359 152 816 627 361 359 136 794 673 320 353 162 815 653 333 388 155 810 616 297 361 175 848 649 314 346 198 827 613 354 403 154 855 672 345 373 155 847 647 358 400 157 862 612 307 360 164 832 663 326 395 194 862 627 300 378 195 852 614 335 409 151 828 633 351 377 150 829 653 30...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #39:

score: 0
Accepted
time: 1058ms
memory: 48112kb

input:

200000 233
280 819 442 414 171 336 421 322 857 563 361 216 333 257 356 907 474 423 104 376 255 317 882 600 449 309 368 330 446 757 614 260 114 333 349 308 823 424 353 137 329 463 398 755 524 366 263 347 302 274 737 479 319 194 314 308 421 944 541 458 107 245 398 257 852 485 371 283 289 264 442 913 5...

output:

1 3 1 1 5 1 3 1 1 1 1 3 5 3 1 11 1 1 5 5 3 1 1 1 1 3 7 3 1 5 1 1 3 1 3 1 25 1 1 5 1 3 1 33 1 1 5 7 3 1 57 1 1 5 5 3 1 43 1 1 5 1 3 1 29 1 3 5 5 3 1 15 1 1 5 1 3 1 11 1 1 5 1 3 1 1 1 1 5 1 3 1 7 1 1 5 7 3 1 1 1 1 5 19 3 1 1 1 1 3 7 3 1 5 1 1 5 5 3 1 7 1 1 5 1 3 1 7 1 3 5 5 3 1 21 1 3 5 5 3 1 1 1 1 3 ...

result:

ok 399999 numbers

Test #40:

score: 0
Accepted
time: 1124ms
memory: 48084kb

input:

200000 433
478 708 135 285 504 592 254 237 321 527 570 69 632 430 509 532 761 58 489 668 320 565 245 273 834 556 196 577 449 707 634 624 239 572 487 302 500 233 255 809 326 351 593 124 457 511 474 188 286 702 539 403 172 314 620 658 70 847 150 567 734 534 107 604 650 485 445 471 197 694 504 208 763 ...

output:

1 3 5 7 5 11 7 9 5 13 1 9 7 3 29 7 1 35 1 3 17 7 3 1 13 1 5 21 3 59 37 13 15 7 35 15 13 3 1 15 1 3 51 7 27 37 5 19 1 11 13 7 9 1 5 1 3 67 3 1 7 1 19 1 7 13 3 9 21 25 1 25 111 3 31 21 7 39 31 13 41 19 3 41 13 1 33 125 3 27 7 19 67 15 13 15 9 11 5 73 1 27 43 3 1 35 39 45 103 15 13 19 9 7 45 27 1 109 3...

result:

ok 399999 numbers

Test #41:

score: 0
Accepted
time: 852ms
memory: 24672kb

input:

200000 0
513 987 987 513 987 875 875 987 513 987 987 513 867 959 959 867 16 875 875 16 311 841 311 260 260 608 608 16 16 959 311 959 16 956 16 311 867 311 787 867 987 867 787 311 987 513 987 311 841 841 513 513 990 261 186 261 990 261 799 198 799 261 959 724 198 724 959 311 345 513 345 311 987 186 1...

output:

1 1 1 3 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 5 1 1 3 1 1 3 1 1 1 7 1 1 1 1 5 1 1 1 1 1 1 1 1 5 1 3 1 1 5 1 1 1 1 5 1 1 1 1 5 1 1 1 1 5 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 3 1 1 3 1 1 3 1 1 1 5 1 1 1 1 1 3 1 1 3 1 1 1 1 1 5 1 1 1 3 1 3 1 1 1 5 1 1 1 1 5 1 1 1 1 5 1 1 1 1 1 1 1 1 5 1 1 1 1 ...

result:

ok 399999 numbers

Test #42:

score: 0
Accepted
time: 827ms
memory: 24312kb

input:

200000 0
815 815 313 581 313 968 565 565 968 22 22 968 968 581 581 858 836 434 808 434 836 858 473 115 473 473 115 473 591 669 591 156 473 22 473 156 313 964 964 313 723 723 156 22 434 443 434 22 156 964 443 443 443 964 443 836 49 49 836 443 858 443 723 443 858 815 723 119 565 119 723 815 434 434 15...

output:

1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 1 3 1 1 3 1 1 3 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 1 1 5 1 3 1 1 1 1 1 1 3 1 5 1 1 1 1 1 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 3 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 3 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #43:

score: 0
Accepted
time: 830ms
memory: 26240kb

input:

200000 0
72 350 128 225 642 894 55 495 128 478 642 427 227 693 882 638 546 326 326 693 330 128 707 505 894 707 227 717 322 330 350 816 330 326 227 322 427 225 225 427 225 642 693 427 882 894 468 55 330 894 707 598 227 227 227 546 427 350 468 642 322 227 894 227 128 882 225 816 128 816 330 37 882 598...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #44:

score: 0
Accepted
time: 963ms
memory: 48124kb

input:

200000 77
664 657 715 690 96 183 65 215 614 210 680 666 186 567 549 210 218 894 583 900 204 473 462 766 126 111 787 569 895 888 567 788 852 618 870 829 799 554 156 624 794 578 799 555 783 756 749 675 629 868 347 559 317 863 935 112 970 604 591 653 896 789 506 763 885 158 166 523 511 785 815 609 553 ...

output:

1 3 3 1 1 3 3 1 3 3 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 5 1 1 5 1 3 5 5 3 1 3 1 1 1 1 1 5 1 1 1 3 1 1 5 1 1 1 5 1 1 1 1 1 1 1 1 1 1 5 3 1 1 1 1 1 1 1 5 1 5 1 1 1 1 3 5 5 1 1 1 3 5 1 1 1 1 5 1 1 1 1 1 3 5 7 7 5 3 1 3 1 5 1 1 1 1 1 1 1 3 3 1 5 1 1 5 1 1 1 1 1 3 5 5 3 1 1 1 5 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #45:

score: 0
Accepted
time: 993ms
memory: 48044kb

input:

200000 77
126 456 187 333 357 813 298 380 244 387 265 816 197 639 593 196 362 190 412 403 132 397 186 221 298 233 139 397 274 319 409 509 458 843 211 817 313 56 160 143 142 109 372 113 352 591 492 602 333 128 339 845 312 582 251 809 189 821 240 595 63 616 496 298 470 574 117 818 574 866 188 827 66 6...

output:

1 3 1 1 1 9 1 3 7 3 1 3 1 1 1 1 3 3 1 1 3 3 1 1 7 1 1 1 1 1 1 3 1 1 3 1 1 1 1 7 3 1 3 3 1 1 9 1 1 3 1 3 1 5 1 3 7 3 1 1 3 1 1 7 1 1 1 1 5 1 3 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 7 1 1 1 1 1 1 5 1 1 1 1 3 7 1 1 3 1 5 1 1 1 1 1 1 1 5 1 1 3 3 1 1 1 1 1 1 3 1 3 1 1 7 1 1 1 1 5 1 1 1 1 1 1 1 1 1 3 1 1 3 3 1 3 ...

result:

ok 399999 numbers

Test #46:

score: 0
Accepted
time: 946ms
memory: 48600kb

input:

200000 77
763 254 740 735 576 593 172 614 206 572 597 608 608 546 592 156 562 227 553 568 736 626 993 531 538 361 588 539 633 327 555 501 988 628 443 354 876 545 355 872 649 351 637 877 329 526 895 350 470 832 527 219 526 306 573 223 486 858 219 311 304 972 319 313 393 459 587 450 471 540 404 415 34...

output:

1 3 1 1 1 1 3 7 3 1 3 5 5 3 1 3 7 3 1 1 3 1 1 1 1 5 1 13 1 1 1 1 1 1 1 1 1 1 1 1 1 15 1 1 1 1 1 1 1 3 1 3 1 9 1 1 1 1 1 1 1 5 1 3 1 1 3 1 1 5 1 3 1 1 5 1 1 1 1 1 1 1 1 3 3 1 1 1 1 3 1 3 1 1 1 1 1 3 1 1 1 1 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 3 1 1 3 1 11 1 3 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok 399999 numbers

Test #47:

score: 0
Accepted
time: 986ms
memory: 47816kb

input:

200000 77
713 193 783 938 645 449 754 790 677 732 720 280 383 537 410 962 705 361 731 852 849 695 776 749 792 723 717 897 795 740 424 714 915 430 503 438 253 789 762 713 789 729 424 628 917 790 165 721 375 181 391 783 729 292 404 203 594 854 599 417 536 396 766 211 461 728 726 444 626 766 275 724 69...

output:

1 3 1 1 1 1 1 3 5 3 1 1 1 3 1 1 1 3 1 1 1 3 5 5 5 3 1 1 1 1 3 1 1 1 3 1 1 1 3 5 3 1 1 1 1 1 3 1 1 5 1 1 1 1 1 1 1 3 1 3 3 1 1 1 1 1 1 1 1 1 5 1 1 1 1 3 1 1 1 1 1 1 3 3 1 3 3 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 5 1 1 3 1 1 1 1 1 1 1 1 1 3 1 3 1 1 1 1 3 1 1 3 1 1 1 1 3 3 1 1 1 1 5 1 3 1 1 3 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #48:

score: 0
Accepted
time: 1044ms
memory: 48456kb

input:

200000 177
25 449 96 64 183 513 40 130 722 14 367 669 413 458 529 379 903 668 624 529 644 632 861 760 724 200 275 378 85 934 211 136 260 128 140 209 844 705 606 170 186 347 231 205 554 619 249 913 846 178 275 322 513 560 705 709 707 662 527 239 343 201 753 404 778 173 831 180 20 162 916 52 719 185 1...

output:

1 3 1 7 1 5 1 1 3 1 1 3 1 3 3 1 1 1 3 7 3 1 5 3 1 1 1 1 1 3 1 3 5 5 3 1 1 1 1 1 3 9 3 1 1 1 1 1 1 1 3 1 1 1 3 15 3 1 1 1 3 1 1 5 1 3 3 1 9 1 3 1 3 1 1 5 1 1 1 3 1 3 1 1 5 1 3 1 3 1 11 1 3 5 3 1 1 1 3 3 1 1 1 9 1 1 1 1 1 1 3 1 3 3 1 3 1 1 1 1 5 1 1 3 1 1 1 3 5 3 1 1 3 5 5 3 5 3 1 1 1 5 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #49:

score: 0
Accepted
time: 1057ms
memory: 48560kb

input:

200000 233
719 486 898 474 818 242 883 786 407 966 329 752 435 927 851 311 807 764 541 379 385 866 809 878 787 839 870 310 343 551 788 571 262 310 488 917 459 822 640 429 443 606 703 899 636 413 733 844 608 471 343 480 312 815 716 853 327 507 188 597 436 783 814 513 782 284 840 831 318 307 722 287 6...

output:

1 3 5 3 5 3 1 1 3 5 13 5 3 1 1 7 1 1 1 7 1 1 3 5 5 3 1 1 1 1 7 1 1 3 1 3 13 3 1 5 9 1 1 5 1 13 1 5 1 1 3 3 1 1 21 1 1 3 9 1 3 1 1 3 9 3 1 1 1 1 3 5 9 5 1 7 1 1 1 1 19 1 1 1 3 7 3 9 9 9 3 23 3 1 13 1 3 7 1 3 1 1 1 1 1 1 1 11 1 1 5 1 3 3 1 3 3 3 3 3 3 1 3 1 1 5 1 3 3 1 1 1 1 5 25 3 1 1 1 1 3 3 1 5 3 3...

result:

ok 399999 numbers

Test #50:

score: 0
Accepted
time: 840ms
memory: 24300kb

input:

200000 0
288 433 974 9 582 433 582 9 974 433 288 288 433 974 9 582 433 582 9 974 433 288 958 376 84 351 790 790 351 84 376 958 958 376 84 351 790 790 351 84 376 958 958 376 84 351 790 790 351 84 376 958 958 376 84 351 790 790 351 84 376 958 958 376 84 351 790 790 351 84 376 958 958 376 84 351 790 79...

output:

1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #51:

score: 0
Accepted
time: 820ms
memory: 24388kb

input:

200000 0
602 81 296 296 81 602 602 81 296 296 81 602 602 81 296 296 81 602 602 81 296 296 81 602 602 81 296 296 81 602 420 296 296 420 420 296 296 420 420 296 296 420 420 296 296 420 420 296 296 420 732 293 560 81 602 81 560 293 732 732 293 560 81 602 81 560 293 732 732 293 560 81 602 81 560 293 732...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 9 1 1 1 1 1 1 1 1 27 1 1 1 1 1 1 1 1 45 1 1 1 1 1 1 1 1 27 1 1 1 1 1 1 1 1 9 1 1 1 1 1 1 5 1 1 1 1 5 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 3 1 1 1 1 1 1 1 1 1 1...

result:

ok 399999 numbers

Test #52:

score: 0
Accepted
time: 931ms
memory: 48044kb

input:

200000 56
439 419 273 388 443 476 401 249 401 479 450 383 261 417 489 445 377 264 380 442 460 420 230 421 478 471 397 271 380 482 482 408 243 397 487 490 401 219 392 479 445 423 226 398 458 487 393 230 384 444 490 430 228 430 459 493 400 220 382 474 492 392 251 405 490 474 392 234 378 444 454 405 26...

output:

1 1 5 1 1 3 1 15 1 3 1 1 25 1 3 1 1 35 1 1 3 1 45 1 3 1 1 55 1 1 1 1 65 1 1 1 1 75 1 3 3 1 85 1 1 1 1 95 1 1 3 1 105 1 1 1 1 115 1 1 1 1 125 1 1 1 1 135 1 1 3 1 145 1 1 1 1 155 1 1 3 1 165 1 1 3 1 175 1 1 1 1 185 1 3 1 1 195 1 3 3 1 205 1 3 3 1 215 1 1 1 1 225 1 1 1 1 235 1 1 3 1 245 1 3 3 1 255 1 1...

result:

ok 399999 numbers

Test #53:

score: 0
Accepted
time: 982ms
memory: 48336kb

input:

200000 76
235 534 563 185 185 542 551 248 249 553 554 234 179 528 531 173 220 546 501 242 187 496 544 174 204 520 508 195 209 530 524 211 205 498 559 240 185 561 503 234 216 556 571 241 188 559 500 214 173 524 536 194 222 554 564 181 230 545 498 202 229 565 542 214 210 561 508 233 176 497 547 176 24...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #54:

score: 0
Accepted
time: 1073ms
memory: 48036kb

input:

200000 233
247 41 267 730 96 232 619 101 147 199 103 147 199 546 197 78 675 152 148 92 63 196 137 737 58 227 725 202 201 158 209 131 246 599 88 107 569 47 226 238 182 129 234 619 85 278 689 183 256 95 191 117 164 613 198 209 650 96 162 225 56 131 241 713 209 265 595 255 122 167 96 246 65 670 176 55 ...

output:

1 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 5 3 1 5 1 1 5 1 3 5 ...

result:

ok 399999 numbers

Test #55:

score: 0
Accepted
time: 1004ms
memory: 48568kb

input:

200000 113
213 270 242 243 298 707 879 879 593 262 871 485 648 451 769 193 525 964 853 796 409 333 761 830 904 541 264 832 382 699 472 863 194 560 946 897 726 308 873 894 274 877 874 569 399 228 256 409 511 902 855 301 907 867 811 912 244 875 883 546 447 193 192 465 506 863 865 291 933 802 870 882 2...

output:

1 3 5 3 1 1 1 1 1 1 1 1 19 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 5 1 3 3 1 5 1 1 1 1 1 1 1 1 1 1 5 1 3 3 1 5 1 1 1 1 1 1 1 1 1 1 5 1 3 5 5 3 11 13 3 3 9 1 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 17 1 3 1 1 1 1 1 3 1 1 1 1 1 1 3 1 17 1 3 1 1 1 1 1 1 3 1 1 ...

result:

ok 399999 numbers

Test #56:

score: 0
Accepted
time: 1130ms
memory: 48160kb

input:

200000 412
415 218 614 515 380 209 433 460 361 494 655 667 298 455 525 110 369 527 408 33 607 781 115 693 817 645 111 517 500 88 728 801 482 49 583 504 423 407 456 532 225 709 755 239 406 758 709 148 726 546 428 655 543 377 117 474 576 76 664 641 559 287 412 641 81 374 663 343 378 405 636 244 566 64...

output:

1 3 5 7 9 11 9 15 5 19 21 15 19 3 9 7 1 35 1 7 1 1 5 1 49 1 5 3 1 7 1 63 1 19 1 9 5 7 77 11 21 1 1 5 1 91 1 7 11 3 7 5 105 1 5 1 3 5 1 119 5 5 3 17 19 1 133 5 7 9 11 19 15 147 15 21 9 19 17 15 161 5 7 1 3 5 1 175 1 5 3 1 35 11 189 11 35 9 23 21 1 191 5 19 11 15 3 1 177 1 5 1 1 5 1 163 1 5 17 9 19 1 ...

result:

ok 399999 numbers

Test #57:

score: 0
Accepted
time: 1050ms
memory: 47860kb

input:

200000 197
349 466 525 682 527 355 375 315 368 505 612 421 399 278 418 474 568 605 470 386 444 344 326 447 571 543 478 328 396 468 559 699 384 344 333 273 401 383 717 432 411 394 403 442 562 533 463 323 381 323 349 396 645 542 408 369 282 479 484 633 437 368 288 281 358 420 727 438 348 259 289 334 4...

output:

1 3 1 7 1 3 13 7 3 1 21 1 7 17 29 3 11 35 1 3 33 19 9 1 49 11 1 7 19 3 1 63 1 3 5 5 3 1 77 1 3 19 7 9 11 91 1 3 19 19 3 1 105 1 3 7 7 1 9 119 1 3 5 5 3 1 133 1 3 5 5 3 1 147 1 1 3 19 3 1 161 1 3 5 21 3 1 175 1 1 5 1 3 9 189 1 3 7 5 3 1 203 1 3 5 7 3 1 217 1 1 7 3 1 1 231 1 3 21 9 3 1 245 1 1 35 3 3 ...

result:

ok 399999 numbers

Test #58:

score: 0
Accepted
time: 825ms
memory: 25400kb

input:

200000 0
308 677 240 835 391 866 277 53 277 866 308 612 260 305 10 765 167 260 802 784 612 167 784 260 511 391 658 206 784 752 677 835 686 308 277 206 535 167 765 658 752 866 784 686 722 686 277 784 206 612 784 752 305 391 784 802 167 53 765 802 866 277 677 658 511 391 784 119 277 802 802 53 511 802...

output:

1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #59:

score: 0
Accepted
time: 857ms
memory: 24332kb

input:

200000 0
940 773 913 146 586 262 321 940 438 262 12 12 493 146 493 584 125 913 586 991 283 586 721 773 125 913 344 687 12 991 321 882 358 493 136 125 77 386 386 136 586 773 77 882 600 584 600 687 283 77 855 77 344 438 321 913 321 438 358 584 882 344 12 438 721 584 321 438 528 125 358 721 687 262 283...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #60:

score: 0
Accepted
time: 798ms
memory: 23948kb

input:

200000 0
960 425 669 304 330 477 527 881 504 332 562 810 431 332 477 881 668 431 330 504 516 518 960 935 881 334 810 90 881 425 504 477 504 304 334 669 668 249 810 516 668 810 334 535 249 90 49 669 504 960 334 334 751 504 935 881 669 504 304 332 249 562 881 431 751 504 881 330 516 535 90 90 562 504 ...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #61:

score: 0
Accepted
time: 969ms
memory: 48048kb

input:

200000 77
304 286 802 84 628 743 262 626 253 290 308 248 749 656 384 709 490 776 86 799 553 750 738 440 622 372 864 359 776 183 740 782 946 300 810 305 850 915 873 285 488 962 740 838 302 841 298 707 65 23 898 744 273 793 92 676 131 405 172 97 325 874 39 392 761 289 779 464 159 788 547 317 742 47 35...

output:

1 1 1 1 1 1 1 3 1 3 3 1 1 1 3 1 3 1 7 1 3 1 1 1 3 1 3 1 1 3 1 1 1 1 3 3 1 5 1 1 1 1 1 1 3 3 1 1 1 1 1 1 3 1 1 3 1 3 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 3 3 1 1 3 1 1 3 3 3 1 1 3 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 3 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 3 1 1 1 3 1 5 1 1 3 1 3 1 3 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #62:

score: 0
Accepted
time: 1071ms
memory: 48044kb

input:

200000 233
524 627 418 772 632 504 650 496 759 353 370 430 221 310 546 349 542 540 846 748 256 205 491 628 512 591 829 290 589 652 323 561 278 426 472 216 760 543 396 482 630 540 175 324 721 397 331 666 684 289 708 226 679 842 318 593 859 530 357 596 599 418 145 439 684 444 716 498 390 667 353 794 8...

output:

1 3 5 7 1 3 5 5 3 1 3 19 13 1 3 5 3 1 3 1 1 1 1 3 3 1 1 1 1 1 3 19 5 3 3 1 1 1 5 1 13 1 15 1 11 1 1 1 1 3 23 3 1 1 1 1 5 1 3 1 11 1 7 1 3 5 3 1 3 3 3 1 1 3 3 1 1 1 3 7 9 1 3 3 3 1 3 1 3 5 1 9 11 3 5 15 9 9 7 5 3 1 1 1 1 3 3 1 1 5 1 3 7 1 1 9 1 1 1 1 1 1 1 1 11 1 1 1 1 9 1 1 7 15 7 5 3 1 1 1 5 1 3 3 ...

result:

ok 399999 numbers

Test #63:

score: 0
Accepted
time: 1134ms
memory: 48048kb

input:

200000 345
562 676 179 948 542 625 315 669 418 376 167 477 306 510 324 850 785 930 738 21 571 141 707 94 428 916 949 793 845 244 646 508 285 105 103 192 446 425 377 58 162 415 200 287 83 787 119 392 464 430 93 600 556 51 575 578 595 533 668 268 676 344 277 625 376 646 743 113 290 637 272 221 516 287...

output:

1 1 5 1 9 9 5 5 9 13 15 9 5 3 3 1 3 3 1 3 5 13 5 3 1 1 3 3 1 5 3 1 1 9 11 7 11 13 1 11 1 7 5 3 1 11 1 3 7 1 7 1 1 5 1 3 19 33 9 11 3 1 5 9 3 1 1 1 1 7 1 3 3 3 1 15 3 7 7 3 9 9 11 3 1 5 1 1 3 3 3 5 7 9 7 7 5 3 1 21 21 3 1 7 19 11 5 13 11 9 1 9 3 1 3 29 3 1 3 3 1 1 1 3 3 5 9 5 3 1 21 1 1 5 13 3 1 1 5 ...

result:

ok 399999 numbers

Test #64:

score: 0
Accepted
time: 855ms
memory: 23900kb

input:

200000 0
484 277 60 488 962 677 299 724 940 962 299 398 536 224 411 371 664 398 60 664 60 416 299 940 630 940 587 411 277 587 411 494 398 587 109 488 664 371 398 484 488 536 494 777 494 587 630 423 269 411 940 587 494 777 269 371 587 224 277 630 597 109 423 269 269 484 812 962 677 812 962 962 398 72...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #65:

score: 0
Accepted
time: 814ms
memory: 23944kb

input:

200000 0
578 130 627 243 877 106 187 997 578 578 187 260 130 961 355 130 172 260 187 320 355 329 106 300 627 769 187 260 106 300 130 320 106 335 130 364 335 219 877 187 329 997 260 24 627 243 219 585 335 219 335 219 997 106 364 585 893 106 243 172 364 364 627 106 329 24 24 585 106 130 335 260 820 58...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 ...

result:

ok 399999 numbers

Test #66:

score: 0
Accepted
time: 849ms
memory: 24620kb

input:

200000 0
909 980 461 278 461 278 937 332 1 688 342 715 342 513 929 909 691 212 18 315 212 937 909 332 953 961 715 769 961 183 715 461 18 1 700 700 992 278 342 538 212 116 700 18 961 281 1 715 332 513 278 909 929 212 315 961 414 715 278 715 513 281 769 691 116 315 332 688 700 769 961 691 688 769 1 53...

output:

1 1 1 3 3 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #67:

score: 0
Accepted
time: 988ms
memory: 48104kb

input:

200000 100
903 729 633 825 328 267 803 124 830 364 147 897 445 367 571 76 238 913 104 358 625 812 787 705 850 599 669 878 232 855 841 140 699 93 142 590 233 699 377 922 218 854 302 525 910 835 674 353 300 151 931 163 917 167 736 361 459 942 762 400 404 233 912 815 764 942 763 948 894 303 406 595 903...

output:

1 1 3 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 1 1 3 1 1 3 1 1 1 1 5 3 1 1 1 1 1 1 1 1 3 5 3 1 1 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 3 1 5 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 5 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 3 3 1 1 1 3 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #68:

score: 0
Accepted
time: 1020ms
memory: 48120kb

input:

200000 155
166 196 299 891 788 816 276 749 566 205 898 172 503 283 129 855 429 463 223 827 564 302 75 222 625 158 332 303 179 240 149 411 687 718 215 610 886 535 484 237 175 114 397 294 795 441 222 390 477 859 619 437 196 730 486 417 265 515 276 111 651 597 129 202 642 128 939 740 167 235 604 237 75...

output:

1 3 1 1 5 1 3 1 1 1 5 1 3 1 1 1 1 1 1 1 1 1 5 1 3 1 3 5 3 5 1 1 1 1 3 1 3 1 1 1 5 1 1 1 3 1 3 1 1 7 1 1 1 1 1 1 3 3 1 1 1 1 1 1 3 1 1 1 1 1 3 3 1 1 1 1 1 3 1 1 5 1 1 1 1 1 3 1 1 1 1 3 1 1 1 1 5 1 1 3 5 5 1 1 1 3 3 1 1 1 3 3 1 7 1 3 1 3 1 1 1 1 1 5 1 9 1 5 1 1 1 1 1 3 1 1 1 1 1 1 1 5 1 3 1 1 3 3 1 3 ...

result:

ok 399999 numbers

Test #69:

score: 0
Accepted
time: 1107ms
memory: 48180kb

input:

200000 321
467 367 429 362 138 357 263 627 400 671 904 554 53 595 524 316 662 752 640 129 544 865 626 575 768 640 785 672 491 339 469 434 605 657 462 588 611 752 463 960 634 829 289 595 383 535 545 827 634 627 414 871 42 65 431 677 391 654 455 673 895 300 478 722 894 380 628 635 329 625 531 610 505 ...

output:

1 3 3 7 9 9 7 5 3 1 3 1 3 1 3 5 1 9 1 13 1 3 5 7 17 7 9 15 1 19 7 15 11 7 9 7 9 3 17 5 21 1 5 17 9 5 11 11 5 5 3 1 1 1 1 3 5 5 3 1 1 1 1 1 1 7 3 5 7 9 7 13 9 7 13 3 1 7 1 7 1 3 21 7 17 1 1 23 1 7 1 3 1 23 1 3 13 7 3 11 11 13 5 5 3 1 3 3 1 1 1 1 5 1 3 3 1 1 7 1 9 1 7 1 3 3 1 1 3 3 5 5 3 1 5 1 13 1 1 ...

result:

ok 399999 numbers

Test #70:

score: 0
Accepted
time: 975ms
memory: 24484kb

input:

200000 0
659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659 659...

output:

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 175 177...

result:

ok 399999 numbers

Test #71:

score: 0
Accepted
time: 973ms
memory: 23628kb

input:

200000 0
984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984 984...

output:

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 175 177...

result:

ok 399999 numbers

Test #72:

score: 0
Accepted
time: 1016ms
memory: 25076kb

input:

200000 0
325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325 325...

output:

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 175 177...

result:

ok 399999 numbers

Test #73:

score: 0
Accepted
time: 1108ms
memory: 39256kb

input:

200000 77
637 581 599 616 583 570 589 623 602 629 577 572 646 639 606 587 586 570 619 597 607 616 614 573 617 575 592 598 621 579 596 606 623 580 578 610 593 634 592 605 591 610 592 572 623 636 626 580 633 641 634 573 633 611 594 630 630 590 611 623 596 595 603 642 576 590 572 619 619 638 610 637 61...

output:

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 175 177...

result:

ok 399999 numbers

Test #74:

score: 0
Accepted
time: 1121ms
memory: 44696kb

input:

200000 123
284 310 285 314 228 253 296 316 281 319 209 266 228 236 226 238 240 271 290 212 322 251 218 251 218 259 305 211 257 299 232 262 245 221 251 216 236 236 237 298 305 308 224 210 317 235 290 277 259 218 245 300 209 306 301 308 313 232 204 290 265 274 241 219 203 311 210 281 226 247 273 220 2...

output:

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 175 177...

result:

ok 399999 numbers

Test #75:

score: 0
Accepted
time: 1223ms
memory: 45516kb

input:

200000 233
596 657 565 665 604 537 712 702 611 669 711 649 721 539 739 682 623 743 698 543 700 586 747 730 722 608 648 684 628 755 537 577 532 582 562 653 640 716 671 589 639 571 541 751 587 566 673 577 546 664 655 609 704 643 722 663 719 714 653 722 611 541 666 693 540 537 649 709 569 591 711 673 5...

output:

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 175 177...

result:

ok 399999 numbers

Test #76:

score: 0
Accepted
time: 1260ms
memory: 48288kb

input:

200000 377
377 577 508 302 560 239 558 505 433 265 469 341 444 333 587 259 362 546 305 532 215 540 312 481 226 556 398 300 546 347 529 405 214 499 475 584 271 335 314 233 574 563 499 240 251 239 438 554 425 331 567 282 557 276 515 521 303 237 303 511 269 505 331 560 431 472 413 588 587 251 361 419 5...

output:

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 175 177...

result:

ok 399999 numbers

Test #77:

score: 0
Accepted
time: 1256ms
memory: 47616kb

input:

200000 414
624 770 740 721 459 841 725 811 678 564 832 851 758 568 796 559 763 498 822 547 714 590 779 483 820 869 553 531 799 733 798 813 510 757 494 502 777 541 586 618 611 498 549 749 607 457 639 656 629 620 519 484 788 610 751 525 795 649 503 485 498 778 531 868 579 459 588 663 853 657 627 756 5...

output:

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 175 177...

result:

ok 399999 numbers

Test #78:

score: 0
Accepted
time: 1304ms
memory: 48448kb

input:

200000 498
680 353 410 324 428 660 464 575 730 613 453 632 337 445 470 391 769 511 360 317 703 610 683 432 638 388 749 450 558 501 563 772 448 531 488 750 617 641 518 515 791 790 313 369 619 531 747 716 353 423 504 362 303 439 781 724 759 508 498 361 319 439 538 732 714 406 397 321 614 667 399 744 7...

output:

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 175 177...

result:

ok 399999 numbers

Test #79:

score: 0
Accepted
time: 1332ms
memory: 48616kb

input:

200000 898
233 442 196 857 607 787 687 943 578 339 873 209 369 316 360 260 949 362 785 114 90 494 757 174 799 685 922 867 432 168 511 780 526 512 137 179 616 129 234 877 179 140 723 312 419 628 636 827 649 134 956 194 196 582 521 964 387 85 963 777 634 134 229 741 282 809 676 500 798 473 560 555 677...

output:

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 175 177...

result:

ok 399999 numbers

Test #80:

score: 0
Accepted
time: 1343ms
memory: 48088kb

input:

200000 798
745 618 114 888 853 245 541 548 453 715 874 432 697 714 401 222 413 473 892 316 857 379 781 604 504 719 291 757 587 592 830 618 311 493 806 331 625 223 863 824 198 263 546 720 887 611 121 627 480 788 726 156 385 183 739 859 375 801 302 894 458 505 866 492 824 886 865 193 467 501 803 254 1...

output:

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 175 177...

result:

ok 399999 numbers

Test #81:

score: 0
Accepted
time: 868ms
memory: 23720kb

input:

200000 0
906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906 906...

output:

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 175 177...

result:

ok 399999 numbers

Test #82:

score: 0
Accepted
time: 885ms
memory: 25040kb

input:

200000 0
643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643 98 767 98 643 643...

output:

1 1 5 1 1 1 1 15 1 1 1 1 25 1 1 1 1 35 1 1 1 1 45 1 1 1 1 55 1 1 1 1 65 1 1 1 1 75 1 1 1 1 85 1 1 1 1 95 1 1 1 1 105 1 1 1 1 115 1 1 1 1 125 1 1 1 1 135 1 1 1 1 145 1 1 1 1 155 1 1 1 1 165 1 1 1 1 175 1 1 1 1 185 1 1 1 1 195 1 1 1 1 205 1 1 1 1 215 1 1 1 1 225 1 1 1 1 235 1 1 1 1 245 1 1 1 1 255 1 1...

result:

ok 399999 numbers

Test #83:

score: 0
Accepted
time: 1009ms
memory: 46164kb

input:

200000 70
680 634 671 632 622 653 629 675 649 625 653 675 620 677 636 682 678 664 658 649 620 655 675 670 688 636 667 654 659 625 626 658 630 650 636 627 640 636 631 645 631 638 682 632 643 658 637 685 638 680 688 631 664 663 686 623 629 619 684 666 650 629 665 646 635 634 663 675 619 667 675 649 67...

output:

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 175 177...

result:

ok 399999 numbers

Test #84:

score: 0
Accepted
time: 943ms
memory: 41012kb

input:

200000 70
641 400 395 663 640 378 381 651 665 414 393 650 691 372 360 648 691 421 421 641 652 362 391 677 662 400 394 644 704 402 355 694 640 412 379 665 695 357 388 696 697 412 355 690 640 399 375 664 696 403 354 641 664 372 358 642 655 376 379 676 680 378 423 638 700 381 385 688 636 392 406 645 66...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #85:

score: 0
Accepted
time: 1039ms
memory: 46808kb

input:

200000 150
387 205 180 385 337 146 139 397 346 155 204 333 384 129 199 338 371 162 81 407 361 101 150 452 409 204 178 368 393 95 220 429 327 87 110 353 447 78 76 370 385 176 155 321 323 201 128 454 449 87 121 369 429 147 151 367 436 85 135 401 348 218 120 376 315 99 143 342 421 105 128 346 416 203 8...

output:

1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 5 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 5 1 1 1 1 1 1 1 1 1 1 5 1 1 1 ...

result:

ok 399999 numbers

Test #86:

score: 0
Accepted
time: 1148ms
memory: 46584kb

input:

200000 233
140 286 92 174 486 100 134 351 117 124 330 160 171 458 40 134 335 146 127 320 159 81 342 139 106 419 44 197 424 221 49 471 91 144 326 35 84 463 227 192 378 180 142 500 54 172 329 176 97 334 212 25 486 184 93 403 88 33 346 53 206 408 193 219 321 170 181 390 213 169 504 206 184 316 118 217 ...

output:

1 3 3 1 9 1 1 15 7 7 21 3 1 27 1 1 33 7 7 39 1 7 45 1 1 51 3 1 57 1 1 63 1 1 69 1 1 75 1 3 81 1 1 87 1 1 93 7 7 99 1 1 105 1 3 111 1 1 117 3 1 123 9 3 129 7 7 135 3 1 141 1 3 147 7 3 153 13 1 159 7 3 165 9 1 171 1 1 177 1 3 183 1 3 189 3 1 195 1 1 201 1 1 207 1 1 213 1 7 219 3 1 225 1 1 231 1 7 237 ...

result:

ok 399999 numbers

Test #87:

score: 0
Accepted
time: 1027ms
memory: 48068kb

input:

200000 150
219 683 700 114 680 595 225 224 590 694 103 691 586 248 216 670 619 118 644 602 198 170 676 626 44 721 599 137 118 679 675 110 626 669 183 251 714 679 82 727 623 262 211 634 751 30 636 720 156 165 648 731 115 761 644 203 198 671 681 38 761 628 253 146 715 661 106 640 680 142 179 676 664 6...

output:

1 1 1 7 1 1 1 1 1 1 21 1 1 1 1 1 1 35 1 1 1 1 1 1 49 1 1 1 1 1 1 63 1 1 1 1 1 1 77 1 1 1 1 1 1 91 1 1 1 1 1 1 105 1 1 1 1 1 1 119 1 1 1 1 1 1 133 1 1 1 1 1 1 147 1 1 1 1 1 1 161 1 1 1 1 1 1 175 1 1 1 1 1 1 189 1 1 1 1 1 1 203 1 1 1 1 1 1 217 1 1 1 1 1 1 231 1 1 1 1 1 1 245 1 1 1 1 1 1 259 1 1 1 1 1 ...

result:

ok 399999 numbers

Test #88:

score: 0
Accepted
time: 1045ms
memory: 48088kb

input:

200000 198
332 607 115 803 673 678 170 482 251 366 509 174 721 687 708 114 541 430 349 513 192 806 826 794 227 627 393 416 640 165 642 746 648 227 612 328 338 570 148 723 720 757 174 499 389 385 611 222 641 799 716 87 625 427 259 536 123 752 743 626 115 484 276 318 612 102 685 665 748 65 604 362 327...

output:

1 1 3 1 9 1 3 3 3 1 3 1 1 27 1 3 1 3 3 3 1 1 45 1 3 3 1 1 1 3 1 63 1 3 3 1 1 3 3 1 81 1 1 1 3 1 3 3 1 99 1 3 1 1 3 3 1 1 117 1 3 3 3 1 1 3 1 135 1 3 1 1 3 3 1 1 153 1 1 3 1 1 3 1 1 171 1 3 3 1 3 3 1 1 189 1 3 3 3 1 1 3 1 207 1 3 3 1 3 3 3 1 225 1 3 1 1 3 3 1 1 243 1 3 3 1 1 3 1 1 261 1 1 1 1 1 3 3 1...

result:

ok 399999 numbers

Test #89:

score: 0
Accepted
time: 1054ms
memory: 42616kb

input:

200000 89
866 857 870 842 905 868 900 862 842 875 916 843 882 867 901 900 842 907 864 860 867 869 838 873 884 834 847 883 889 904 916 906 864 879 844 842 881 895 829 891 912 850 854 827 865 865 883 909 873 893 876 869 915 828 875 860 852 889 856 889 912 859 844 873 835 829 899 883 839 889 879 856 84...

output:

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 175 177...

result:

ok 399999 numbers

Test #90:

score: 0
Accepted
time: 1127ms
memory: 45636kb

input:

200000 134
850 805 730 838 838 838 765 814 757 819 828 841 848 848 803 823 790 801 749 793 761 782 784 736 829 815 841 820 819 742 818 832 758 841 770 728 754 778 853 807 847 794 857 775 777 850 824 859 737 814 846 830 848 821 818 771 788 730 793 843 811 800 731 730 824 769 733 742 802 764 766 753 7...

output:

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 175 177...

result:

ok 399999 numbers

Extra Test:

score: 0
Extra Test Passed