QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#609170#9415. MatrixUESTC_xxx#AC ✓1ms4056kbC++20749b2024-10-04 11:02:482024-10-04 11:02:50

Judging History

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

  • [2024-10-04 11:02:50]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:4056kb
  • [2024-10-04 11:02:48]
  • 提交

answer

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<cstring>
#include<queue>
#include<map>
#define ll long long
using namespace std;
int n,a[505][505];
int main(){
	scanf("%d",&n);
	printf("Yes\n");
	a[1][1]=1,a[1][2]=2,a[2][1]=3,a[2][2]=4;
	for(int i=3;i<=n;++i) a[1][i]=a[2][i]=a[i][1]=a[i][2]=5;
	int now=6;
	for(int i=3;i<=n;++i){
		for(int j=3;j<=n;++j){
			if((i+j)%2==0) a[i][j]=now;
		}
	}
	for(int i=3;i<=n-2;++i){
		now++;
		for(int j=3;j<=n;++j){
			if((i+j)%2) a[i][j]=now;
		}
	}
	for(int i=max(n-1,3);i<=n;++i){
		for(int j=3;j<=n;++j){
			if((i+j)%2) now++,a[i][j]=now;
		}
	}
	for(int i=1;i<=n;++i){
		for(int j=1;j<=n;++j) printf("%d ",a[i][j]);
		printf("\n");
	}
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3940kb

input:

2

output:

Yes
1 2 
3 4 

result:

ok Correct. (1 test case)

Test #2:

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

input:

3

output:

Yes
1 2 5 
3 4 5 
5 5 6 

result:

ok Correct. (1 test case)

Test #3:

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

input:

4

output:

Yes
1 2 5 5 
3 4 5 5 
5 5 6 7 
5 5 8 6 

result:

ok Correct. (1 test case)

Test #4:

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

input:

5

output:

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

result:

ok Correct. (1 test case)

Test #5:

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

input:

6

output:

Yes
1 2 5 5 5 5 
3 4 5 5 5 5 
5 5 6 7 6 7 
5 5 8 6 8 6 
5 5 6 9 6 10 
5 5 11 6 12 6 

result:

ok Correct. (1 test case)

Test #6:

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

input:

7

output:

Yes
1 2 5 5 5 5 5 
3 4 5 5 5 5 5 
5 5 6 7 6 7 6 
5 5 8 6 8 6 8 
5 5 6 9 6 9 6 
5 5 10 6 11 6 12 
5 5 6 13 6 14 6 

result:

ok Correct. (1 test case)

Test #7:

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

input:

8

output:

Yes
1 2 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 
5 5 6 11 6 12 6 13 
5 5 14 6 15 6 16 6 

result:

ok Correct. (1 test case)

Test #8:

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

input:

9

output:

Yes
1 2 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 
5 5 12 6 13 6 14 6 15 
5 5 6 16 6 17 6 18 6 

result:

ok Correct. (1 test case)

Test #9:

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

input:

10

output:

Yes
1 2 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 10 6 
5 5 6 11 6 11 6 11 6 11 
5 5 12 6 12 6 12 6 12 6 
5 5 6 13 6 14 6 15 6 16 
5 5 17 6 18 6 19 6 20 6 

result:

ok Correct. (1 test case)

Test #10:

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

input:

11

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 11 6 
5 5 12 6 12 6 12 6 12 6 12 
5 5 6 13 6 13 6 13 6 13 6 
5 5 14 6 15 6 16 6 17 6 18 
5 5 6 19 6 20 6 21 6 22 6 

result:

ok Correct. (1 test case)

Test #11:

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

input:

12

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 10 6 10 6 
5 5 6 11 6 11 6 11 6 11 6 11 
5 5 12 6 12 6 12 6 12 6 12 6 
5 5 6 13 6 13 6 13 6 13 6 13 
5 5 14 6 14 6 14 6 14 6 14 6 
5 5 6 15 6 16 6 17 6 ...

result:

ok Correct. (1 test case)

Test #12:

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

input:

13

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 11 6 11 6 
5 5 12 6 12 6 12 6 12 6 12 6 12 
5 5 6 13 6 13 6 13 6 13 6 13 6 
5 5 14 6 14 6 14 6 14 6 14 6 14...

result:

ok Correct. (1 test case)

Test #13:

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

input:

14

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 
5 5 12 6 12 6 12 6 12 6 12 6 12 6 
5 5 6 13 6 13 6 13 6 13 6 13 6 13 
5 5 14 6 14...

result:

ok Correct. (1 test case)

Test #14:

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

input:

15

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 6 
5 5 12 6 12 6 12 6 12 6 12 6 12 6 12 
5 5 6 13 6 13 6 13 6 13 6 13...

result:

ok Correct. (1 test case)

Test #15:

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

input:

16

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 10 6 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 6 11 
5 5 12 6 12 6 12 6 12 6 12 6 12 6 12 6 
5 5 6 13 6 ...

result:

ok Correct. (1 test case)

Test #16:

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

input:

17

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 6 11 6 
5 5 12 6 12 6 12 6 12 6 12 6 12 6 12...

result:

ok Correct. (1 test case)

Test #17:

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

input:

18

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 6 7 6 7 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 8 6 8 6 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 6 9 6 9 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 10 6 10 6 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 6 11 6 11 
5 5 12 6 12 6 12 6 12...

result:

ok Correct. (1 test case)

Test #18:

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

input:

19

output:

Yes
1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 
5 5 6 7 6 7 6 7 6 7 6 7 6 7 6 7 6 7 6 
5 5 8 6 8 6 8 6 8 6 8 6 8 6 8 6 8 6 8 
5 5 6 9 6 9 6 9 6 9 6 9 6 9 6 9 6 9 6 
5 5 10 6 10 6 10 6 10 6 10 6 10 6 10 6 10 6 10 
5 5 6 11 6 11 6 11 6 11 6 11 6 11 6 11 6 11 6 
5 5 12...

result:

ok Correct. (1 test case)

Test #19:

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

input:

20

output:

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

result:

ok Correct. (1 test case)

Test #20:

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

input:

21

output:

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

result:

ok Correct. (1 test case)

Test #21:

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

input:

22

output:

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

result:

ok Correct. (1 test case)

Test #22:

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

input:

23

output:

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

result:

ok Correct. (1 test case)

Test #23:

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

input:

24

output:

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

result:

ok Correct. (1 test case)

Test #24:

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

input:

25

output:

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

result:

ok Correct. (1 test case)

Test #25:

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

input:

26

output:

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

result:

ok Correct. (1 test case)

Test #26:

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

input:

27

output:

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

result:

ok Correct. (1 test case)

Test #27:

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

input:

28

output:

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

result:

ok Correct. (1 test case)

Test #28:

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

input:

29

output:

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

result:

ok Correct. (1 test case)

Test #29:

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

input:

30

output:

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

result:

ok Correct. (1 test case)

Test #30:

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

input:

31

output:

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

result:

ok Correct. (1 test case)

Test #31:

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

input:

32

output:

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

result:

ok Correct. (1 test case)

Test #32:

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

input:

33

output:

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

result:

ok Correct. (1 test case)

Test #33:

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

input:

34

output:

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

result:

ok Correct. (1 test case)

Test #34:

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

input:

35

output:

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

result:

ok Correct. (1 test case)

Test #35:

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

input:

36

output:

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

result:

ok Correct. (1 test case)

Test #36:

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

input:

37

output:

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

result:

ok Correct. (1 test case)

Test #37:

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

input:

38

output:

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

result:

ok Correct. (1 test case)

Test #38:

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

input:

39

output:

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

result:

ok Correct. (1 test case)

Test #39:

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

input:

40

output:

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

result:

ok Correct. (1 test case)

Test #40:

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

input:

41

output:

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

result:

ok Correct. (1 test case)

Test #41:

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

input:

42

output:

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

result:

ok Correct. (1 test case)

Test #42:

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

input:

43

output:

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

result:

ok Correct. (1 test case)

Test #43:

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

input:

44

output:

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

result:

ok Correct. (1 test case)

Test #44:

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

input:

45

output:

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

result:

ok Correct. (1 test case)

Test #45:

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

input:

46

output:

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

result:

ok Correct. (1 test case)

Test #46:

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

input:

47

output:

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

result:

ok Correct. (1 test case)

Test #47:

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

input:

48

output:

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

result:

ok Correct. (1 test case)

Test #48:

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

input:

49

output:

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

result:

ok Correct. (1 test case)

Test #49:

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

input:

50

output:

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

result:

ok Correct. (1 test case)

Extra Test:

score: 0
Extra Test Passed