QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#609152#9415. MatrixKanate#AC ✓1ms3708kbC++141.1kb2024-10-04 10:55:382024-10-04 10:55:38

Judging History

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

  • [2024-10-04 10:55:38]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3708kb
  • [2024-10-04 10:55:38]
  • 提交

answer

#include<bits/stdc++.h>
// #define int long long
//#define mod 1000000007
#define rep(i,j,k) for(int i=(j);i<=(k);i++)
#define per(i,j,k) for(int i=(j);i>=(k);i--)
using namespace std;
template<class T>void chkmax(T &a,T b){a=max(a,b);}
template<class T>void chkmin(T &a,T b){a=min(a,b);}
template<class T>T read(T &x)
{
	x=0;T f=1;char c=getchar();
	while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
	while(c>='0'&&c<='9'){x=x*10+(c^'0');c=getchar();}
	return x*=f;
}
template<class T,class ...L>void read(T &x,L &...l){read(x),read(l...);}
template<class T>void write(T x)
{
	if(x<0){putchar('-');x=-x;}
	if(x>9){write(x/10);}putchar(x%10+'0');
}
template<class T>void write(T x,char c){write(x),putchar(c);}
int n,x[55][55];
void solve(int n)
{
	int cnt=0;
	x[n-1][n-1]=++cnt;
	x[n-1][n]=++cnt;
	x[n][n-1]=++cnt;
	x[n][n]=++cnt;
	rep(i,1,n-2)
		x[i][i]=++cnt;
	rep(i,1,n-2)
	{
		cnt++;
		rep(j,i+1,n)
			x[j][i]=x[i][j]=cnt;
	}

	rep(i,1,n)rep(j,1,n)write(x[i][j]," \n"[j==n]);
}
signed main()
{
	// rep(i,2,6)solve(i);
	read(n);
	puts("Yes");
	solve(n);
}

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

詳細信息

Test #1:

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

input:

2

output:

Yes
1 2
3 4

result:

ok Correct. (1 test case)

Test #2:

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

input:

3

output:

Yes
5 6 6
6 1 2
6 3 4

result:

ok Correct. (1 test case)

Test #3:

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

input:

4

output:

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

result:

ok Correct. (1 test case)

Test #4:

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

input:

5

output:

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

result:

ok Correct. (1 test case)

Test #5:

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

input:

6

output:

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

result:

ok Correct. (1 test case)

Test #6:

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

input:

7

output:

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

result:

ok Correct. (1 test case)

Test #7:

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

input:

8

output:

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

result:

ok Correct. (1 test case)

Test #8:

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

input:

9

output:

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

result:

ok Correct. (1 test case)

Test #9:

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

input:

10

output:

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

result:

ok Correct. (1 test case)

Test #10:

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

input:

11

output:

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

result:

ok Correct. (1 test case)

Test #11:

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

input:

12

output:

Yes
5 15 15 15 15 15 15 15 15 15 15 15
15 6 16 16 16 16 16 16 16 16 16 16
15 16 7 17 17 17 17 17 17 17 17 17
15 16 17 8 18 18 18 18 18 18 18 18
15 16 17 18 9 19 19 19 19 19 19 19
15 16 17 18 19 10 20 20 20 20 20 20
15 16 17 18 19 20 11 21 21 21 21 21
15 16 17 18 19 20 21 12 22 22 22 22
15 16 17 18 1...

result:

ok Correct. (1 test case)

Test #12:

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

input:

13

output:

Yes
5 16 16 16 16 16 16 16 16 16 16 16 16
16 6 17 17 17 17 17 17 17 17 17 17 17
16 17 7 18 18 18 18 18 18 18 18 18 18
16 17 18 8 19 19 19 19 19 19 19 19 19
16 17 18 19 9 20 20 20 20 20 20 20 20
16 17 18 19 20 10 21 21 21 21 21 21 21
16 17 18 19 20 21 11 22 22 22 22 22 22
16 17 18 19 20 21 22 12 23 2...

result:

ok Correct. (1 test case)

Test #13:

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

input:

14

output:

Yes
5 17 17 17 17 17 17 17 17 17 17 17 17 17
17 6 18 18 18 18 18 18 18 18 18 18 18 18
17 18 7 19 19 19 19 19 19 19 19 19 19 19
17 18 19 8 20 20 20 20 20 20 20 20 20 20
17 18 19 20 9 21 21 21 21 21 21 21 21 21
17 18 19 20 21 10 22 22 22 22 22 22 22 22
17 18 19 20 21 22 11 23 23 23 23 23 23 23
17 18 1...

result:

ok Correct. (1 test case)

Test #14:

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

input:

15

output:

Yes
5 18 18 18 18 18 18 18 18 18 18 18 18 18 18
18 6 19 19 19 19 19 19 19 19 19 19 19 19 19
18 19 7 20 20 20 20 20 20 20 20 20 20 20 20
18 19 20 8 21 21 21 21 21 21 21 21 21 21 21
18 19 20 21 9 22 22 22 22 22 22 22 22 22 22
18 19 20 21 22 10 23 23 23 23 23 23 23 23 23
18 19 20 21 22 23 11 24 24 24 2...

result:

ok Correct. (1 test case)

Test #15:

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

input:

16

output:

Yes
5 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19
19 6 20 20 20 20 20 20 20 20 20 20 20 20 20 20
19 20 7 21 21 21 21 21 21 21 21 21 21 21 21 21
19 20 21 8 22 22 22 22 22 22 22 22 22 22 22 22
19 20 21 22 9 23 23 23 23 23 23 23 23 23 23 23
19 20 21 22 23 10 24 24 24 24 24 24 24 24 24 24
19 20 21 22 2...

result:

ok Correct. (1 test case)

Test #16:

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

input:

17

output:

Yes
5 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 6 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21
20 21 7 22 22 22 22 22 22 22 22 22 22 22 22 22 22
20 21 22 8 23 23 23 23 23 23 23 23 23 23 23 23 23
20 21 22 23 9 24 24 24 24 24 24 24 24 24 24 24 24
20 21 22 23 24 10 25 25 25 25 25 25 25 25 25 2...

result:

ok Correct. (1 test case)

Test #17:

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

input:

18

output:

Yes
5 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21
21 6 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22
21 22 7 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
21 22 23 8 24 24 24 24 24 24 24 24 24 24 24 24 24 24
21 22 23 24 9 25 25 25 25 25 25 25 25 25 25 25 25 25
21 22 23 24 25 10 26 26 26 26 2...

result:

ok Correct. (1 test case)

Test #18:

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

input:

19

output:

Yes
5 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22
22 6 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
22 23 7 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
22 23 24 8 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
22 23 24 25 9 26 26 26 26 26 26 26 26 26 26 26 26 26 26
22 23 24 25 26 1...

result:

ok Correct. (1 test case)

Test #19:

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

input:

20

output:

Yes
5 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 6 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
23 24 7 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
23 24 25 8 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26
23 24 25 26 9 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
2...

result:

ok Correct. (1 test case)

Test #20:

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

input:

21

output:

Yes
5 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
24 6 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
24 25 7 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26
24 25 26 8 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
24 25 26 27 9 28 28 28 28 28 28 28 28 28 28 28 2...

result:

ok Correct. (1 test case)

Test #21:

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

input:

22

output:

Yes
5 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
25 6 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26
25 26 7 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
25 26 27 8 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28
25 26 27 28 9 29 29 29 29 29 29 29 2...

result:

ok Correct. (1 test case)

Test #22:

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

input:

23

output:

Yes
5 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26
26 6 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
26 27 7 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28
26 27 28 8 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29
26 27 28 29 9 30 30 30 3...

result:

ok Correct. (1 test case)

Test #23:

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

input:

24

output:

Yes
5 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
27 6 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28
27 28 7 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29
27 28 29 8 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
27 28 29 30 ...

result:

ok Correct. (1 test case)

Test #24:

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

input:

25

output:

Yes
5 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28
28 6 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29
28 29 7 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
28 29 30 8 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31
...

result:

ok Correct. (1 test case)

Test #25:

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

input:

26

output:

Yes
5 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29
29 6 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
29 30 7 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31
29 30 31 8 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ...

result:

ok Correct. (1 test case)

Test #26:

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

input:

27

output:

Yes
5 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30
30 6 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31
30 31 7 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
30 31 32 8 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 ...

result:

ok Correct. (1 test case)

Test #27:

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

input:

28

output:

Yes
5 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31
31 6 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
31 32 7 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
31 32 33 8 34 34 34 34 34 34 34 34 34 34 34 34 ...

result:

ok Correct. (1 test case)

Test #28:

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

input:

29

output:

Yes
5 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
32 6 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
32 33 7 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
32 33 34 8 35 35 35 35 35 35 35 35 35 ...

result:

ok Correct. (1 test case)

Test #29:

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

input:

30

output:

Yes
5 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
33 6 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
33 34 7 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
33 34 35 8 36 36 36 36 36 36 ...

result:

ok Correct. (1 test case)

Test #30:

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

input:

31

output:

Yes
5 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
34 6 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
34 35 7 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
34 35 36 8 37 37 37 ...

result:

ok Correct. (1 test case)

Test #31:

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

input:

32

output:

Yes
5 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
35 6 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
35 36 7 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
35 36 37 8 ...

result:

ok Correct. (1 test case)

Test #32:

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

input:

33

output:

Yes
5 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
36 6 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
36 37 7 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
36...

result:

ok Correct. (1 test case)

Test #33:

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

input:

34

output:

Yes
5 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
37 6 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
37 38 7 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39...

result:

ok Correct. (1 test case)

Test #34:

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

input:

35

output:

Yes
5 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
38 6 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
38 39 7 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40...

result:

ok Correct. (1 test case)

Test #35:

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

input:

36

output:

Yes
5 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
39 6 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
39 40 7 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41...

result:

ok Correct. (1 test case)

Test #36:

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

input:

37

output:

Yes
5 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
40 6 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41
40 41 7 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42...

result:

ok Correct. (1 test case)

Test #37:

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

input:

38

output:

Yes
5 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41
41 6 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42
41 42 7 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43...

result:

ok Correct. (1 test case)

Test #38:

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

input:

39

output:

Yes
5 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42
42 6 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
42 43 7 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44...

result:

ok Correct. (1 test case)

Test #39:

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

input:

40

output:

Yes
5 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
43 6 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
43 44 7 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45...

result:

ok Correct. (1 test case)

Test #40:

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

input:

41

output:

Yes
5 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
44 6 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45
44 45 7 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46...

result:

ok Correct. (1 test case)

Test #41:

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

input:

42

output:

Yes
5 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45
45 6 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46
45 46 7 47 47 47 47 47 47 47 47 47 47 47 47 47...

result:

ok Correct. (1 test case)

Test #42:

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

input:

43

output:

Yes
5 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46
46 6 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47
46 47 7 48 48 48 48 48 48 48 48 48 48 48...

result:

ok Correct. (1 test case)

Test #43:

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

input:

44

output:

Yes
5 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47
47 6 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48
47 48 7 49 49 49 49 49 49 49 49 49...

result:

ok Correct. (1 test case)

Test #44:

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

input:

45

output:

Yes
5 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48
48 6 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49
48 49 7 50 50 50 50 50 50 50...

result:

ok Correct. (1 test case)

Test #45:

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

input:

46

output:

Yes
5 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49
49 6 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
49 50 7 51 51 51 51 51...

result:

ok Correct. (1 test case)

Test #46:

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

input:

47

output:

Yes
5 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
50 6 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
50 51 7 52 52 52...

result:

ok Correct. (1 test case)

Test #47:

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

input:

48

output:

Yes
5 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
51 6 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
51 52 7 53...

result:

ok Correct. (1 test case)

Test #48:

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

input:

49

output:

Yes
5 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
52 6 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53
52 5...

result:

ok Correct. (1 test case)

Test #49:

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

input:

50

output:

Yes
5 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53
53 6 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 5...

result:

ok Correct. (1 test case)

Extra Test:

score: 0
Extra Test Passed