QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869959#8617. Geo Shardingucup-team987#AC ✓166ms7296kbC++201.5kb2025-01-25 14:05:142025-01-25 14:05:23

Judging History

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

  • [2025-01-25 14:05:23]
  • 评测
  • 测评结果:AC
  • 用时:166ms
  • 内存:7296kb
  • [2025-01-25 14:05:14]
  • 提交

answer

#include<iostream>
#include<vector>
#include<set>
#include<cassert>
using namespace std;
vector<vector<int> >solve(int N)
{
	const int C=10+N*N/100;
	vector<vector<int> >ret(N,vector<int>(N,-1));
	auto place=[&](int x,int y,int c)
	{
		int cnt=0;
		for(int i=-7;i<=8;i++)
		{
			int w=i<=0?7+i:8-i;
			for(int j=-w;j<=w+1;j++)
			{
				int tx=x+i,ty=y+j;
				if(0<=tx&&0<=ty&&tx<N&&ty<N)
				{
					cnt++;
					assert(ret[tx][ty]==-1);
					ret[tx][ty]=c;
				}
			}
		}
		assert(cnt<=150);
		return cnt;
	};
	int c=1,all=0;
	int x=0,y=0;
	for(int i=0;i<N;i++)
	{
		for(int j=0;j<N;j++)
		{
			int t=place(x,y+16*j,c);
			if(t>0)c++;
			all+=t;
		}
		x+=9;
		y-=8;
	}
	//for(int i=0;i<N;i++)for(int j=0;j<N;j++)cout<<ret[i][j]<<(j+1==N?"\n":" ");
	//cout<<flush;
	if(all==N*N&&c<=C)return ret;
	assert(false);
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	for(int N=1001;N<=1000;N++)
	{
		cout<<N<<endl;
		auto v=solve(N);
		/*
		for(int i=0;i<N;i++)for(int j=0;j<N;j++)
		{
			set<int>c;
			for(int x=max(0,i-10);x<=min(i+10,N-1);x++)for(int y=max(0,j-10);y<=min(j+10,N-1);y++)if((i-x)*(i-x)+(j-y)*(j-y)<=100)
			{
				c.insert(v[x][y]);
			}
			if(c.size()>8)
			{
	for(int i=0;i<N;i++)for(int j=0;j<N;j++)cout<<v[i][j]<<(j+1==N?"\n":" ");
				cout<<i<<" "<<j<<endl;
			}
			assert(c.size()<=8);
		}
		*/
	}
	int N;cin>>N;
	auto ret=solve(N);
	for(int i=0;i<N;i++)for(int j=0;j<N;j++)cout<<ret[i][j]<<(j+1==N?"\n":" ");
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3

output:

1 1 1
1 1 1
1 1 1

result:

ok OK

Test #2:

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

input:

50

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4
1 1 1 1 1 1 1 1 6 6 2 2 2 2 2 2 2 2 2 2 2 2 2 2 7 7 3 3 3 3 3 3 3 3 3 3 3 3 3 3 8 8 4 4 4 4 4 4 4 4
...

result:

ok OK

Test #3:

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

input:

77

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...

result:

ok OK

Test #4:

score: 0
Accepted
time: 2ms
memory: 3840kb

input:

100

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 ...

result:

ok OK

Test #5:

score: 0
Accepted
time: 3ms
memory: 3712kb

input:

123

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 ...

result:

ok OK

Test #6:

score: 0
Accepted
time: 42ms
memory: 4352kb

input:

500

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #7:

score: 0
Accepted
time: 75ms
memory: 5120kb

input:

666

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #8:

score: 0
Accepted
time: 101ms
memory: 5888kb

input:

787

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #9:

score: 0
Accepted
time: 103ms
memory: 5888kb

input:

788

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #10:

score: 0
Accepted
time: 164ms
memory: 7296kb

input:

998

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #11:

score: 0
Accepted
time: 163ms
memory: 7296kb

input:

999

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #12:

score: 0
Accepted
time: 166ms
memory: 7296kb

input:

1000

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10...

result:

ok OK

Test #13:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

1

output:

1

result:

ok OK

Test #14:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

2

output:

1 1
1 1

result:

ok OK

Test #15:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4

output:

1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1

result:

ok OK

Test #16:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

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

result:

ok OK

Test #17:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

6

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 2

result:

ok OK

Test #18:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

7

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 2
1 1 1 1 1 2 2
1 1 1 1 2 2 2

result:

ok OK

Test #19:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

8

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 2
1 1 1 1 1 1 2 2
1 1 1 1 1 2 2 2
1 1 1 1 2 2 2 2
1 1 1 2 2 2 2 2

result:

ok OK

Test #20:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

9

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 2
1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 2 2 2
1 1 1 1 1 2 2 2 2
1 1 1 1 2 2 2 2 2
1 1 1 2 2 2 2 2 2
1 1 2 2 2 2 2 2 2

result:

ok OK

Test #21:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10

output:

1 1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 4 4
1 1 1 1 1 1 1 4 4 4
1 1 1 1 1 1 4 4 4 4
1 1 1 1 1 4 4 4 4 4
1 1 1 1 4 4 4 4 4 4
1 1 1 4 4 4 4 4 4 4
1 1 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4

result:

ok OK

Test #22:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

11

output:

1 1 1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 1 1 4 4 2
1 1 1 1 1 1 1 4 4 4 4
1 1 1 1 1 1 4 4 4 4 4
1 1 1 1 1 4 4 4 4 4 4
1 1 1 1 4 4 4 4 4 4 4
1 1 1 4 4 4 4 4 4 4 4
1 1 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4

result:

ok OK

Test #23:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

12

output:

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

result:

ok OK

Test #24:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

13

output:

1 1 1 1 1 1 1 1 1 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2
1 1 1 1 1 4 4 4 4 4 4 4 4
1 1 1 1 4 4 4 4 4 4 4 4 4
1 1 1 4 4 4 4 4 4 4 4 4 4
1 1 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4 4 4
5 5 4 4 4 4 4 ...

result:

ok OK

Test #25:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

14

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4
1 1 1 4 4 4 4 4 4 4 4 4 4 4
1 1 4 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 ...

result:

ok OK

Test #26:

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

input:

15

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2
1 1 1 4 4 4 4 4 4 4 4 4 4 4 4
1 1 4 4 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 4 4 4 4 4 4 4 4 4
...

result:

ok OK

Test #27:

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

input:

16

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2
1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 2
1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4
3 4 4 4 4 4 ...

result:

ok OK

Test #28:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

17

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2
1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 2 2
1 1 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok OK

Test #29:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

18

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2
1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 2 2 2
1 1 4 4 4 4 ...

result:

ok OK

Test #30:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

19

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2
1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 2 2 ...

result:

ok OK

Test #31:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

20

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2 2
1 1 1 4 4 4 4 4 4 4 ...

result:

ok OK

Test #32:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

21

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2 2 5
1 1 1 ...

result:

ok OK

Test #33:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

22

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 5
1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2 ...

result:

ok OK

Test #34:

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

input:

23

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2 5
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 5 5
1 1 1 1 4 4 4 4 4 4 4 4 ...

result:

ok OK

Test #35:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

24

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 5
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2 5 5
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 5 5 5
1 1 1 1 4 4 ...

result:

ok OK

Test #36:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

25

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 5
1 1 1 1 1 1 1 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 5 5
1 1 1 1 1 1 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2 5 5 5
1 1 1 1 1 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 5 5 5 5
...

result:

ok OK

Test #37:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

26

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6
1 1 1 1 1 5 5 5 5 5 5 5 5 2 2 2 2 2 2 2 ...

result:

ok OK

Test #38:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

27

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6
1 1 1 1 1 5 5 5 5 5 5 5 5 2 2 ...

result:

ok OK

Test #39:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

28

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6 6
1 1 1 1 1 5 5 5 5 5 ...

result:

ok OK

Test #40:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

29

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6 6 3
1 1 1 1 1 ...

result:

ok OK

Test #41:

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

input:

30

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6 6 3 3
...

result:

ok OK

Test #42:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

31

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 6 6 6 6 ...

result:

ok OK

Test #43:

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

input:

32

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 ...

result:

ok OK

Test #44:

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

input:

33

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 2 2 2 2 ...

result:

ok OK

Test #45:

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

input:

34

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 3
1 1 1 1 1 1 5 5 5 5 5 5 2 2 ...

result:

ok OK

Test #46:

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

input:

35

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 3 3
1 1 1 1 1 1 5 5 5 5 ...

result:

ok OK

Test #47:

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

input:

36

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 ...

result:

ok OK

Test #48:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

37

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 3 3 3 3
1 1 ...

result:

ok OK

Test #49:

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

input:

38

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 3 3 3 ...

result:

ok OK

Test #50:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

39

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 3 3 3 ...

result:

ok OK

Test #51:

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

input:

40

output:

1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 1 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 3 3 3 ...

result:

ok OK

Extra Test:

score: 0
Extra Test Passed