QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#637878#9415. Matrixcomeintocalm#AC ✓1ms3960kbC++20441b2024-10-13 14:18:032024-10-13 14:18:07

Judging History

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

  • [2024-10-13 14:18:07]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3960kb
  • [2024-10-13 14:18:03]
  • 提交

answer

#include <bits/stdc++.h>

int a[55][55];

int main() {
	int n;
	scanf("%d", &n);
	for (int i = 1; i <= n; ++i) {
		a[i][i] = n + i;
	}
	for (int i = 1; i < n; ++i) {
		for (int j = i + 1; j <= n; ++j) {
			a[i][j] = a[j][i] = i;
		}
	}
	a[n][n - 1] = n - 1;
	a[n - 1][n] = n;
	puts("Yes");
	for (int i = 1; i <= n; ++i) {
		for (int j = 1; j <= n; ++j) {
			printf("%d%c", a[i][j], " \n"[j == n]);
		}
	}
	return 0;
}

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

详细

Test #1:

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

input:

2

output:

Yes
3 2
1 4

result:

ok Correct. (1 test case)

Test #2:

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

input:

3

output:

Yes
4 1 1
1 5 3
1 2 6

result:

ok Correct. (1 test case)

Test #3:

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

input:

4

output:

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

result:

ok Correct. (1 test case)

Test #4:

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

input:

5

output:

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

result:

ok Correct. (1 test case)

Test #5:

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

input:

6

output:

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

result:

ok Correct. (1 test case)

Test #6:

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

input:

7

output:

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

result:

ok Correct. (1 test case)

Test #7:

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

input:

8

output:

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

result:

ok Correct. (1 test case)

Test #8:

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

input:

9

output:

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

result:

ok Correct. (1 test case)

Test #9:

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

input:

10

output:

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

result:

ok Correct. (1 test case)

Test #10:

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

input:

11

output:

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

result:

ok Correct. (1 test case)

Test #11:

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

input:

12

output:

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

result:

ok Correct. (1 test case)

Test #12:

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

input:

13

output:

Yes
14 1 1 1 1 1 1 1 1 1 1 1 1
1 15 2 2 2 2 2 2 2 2 2 2 2
1 2 16 3 3 3 3 3 3 3 3 3 3
1 2 3 17 4 4 4 4 4 4 4 4 4
1 2 3 4 18 5 5 5 5 5 5 5 5
1 2 3 4 5 19 6 6 6 6 6 6 6
1 2 3 4 5 6 20 7 7 7 7 7 7
1 2 3 4 5 6 7 21 8 8 8 8 8
1 2 3 4 5 6 7 8 22 9 9 9 9
1 2 3 4 5 6 7 8 9 23 10 10 10
1 2 3 4 5 6 7 8 9 10 24...

result:

ok Correct. (1 test case)

Test #13:

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

input:

14

output:

Yes
15 1 1 1 1 1 1 1 1 1 1 1 1 1
1 16 2 2 2 2 2 2 2 2 2 2 2 2
1 2 17 3 3 3 3 3 3 3 3 3 3 3
1 2 3 18 4 4 4 4 4 4 4 4 4 4
1 2 3 4 19 5 5 5 5 5 5 5 5 5
1 2 3 4 5 20 6 6 6 6 6 6 6 6
1 2 3 4 5 6 21 7 7 7 7 7 7 7
1 2 3 4 5 6 7 22 8 8 8 8 8 8
1 2 3 4 5 6 7 8 23 9 9 9 9 9
1 2 3 4 5 6 7 8 9 24 10 10 10 10
1 ...

result:

ok Correct. (1 test case)

Test #14:

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

input:

15

output:

Yes
16 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 17 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 18 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 19 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 20 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 21 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 22 7 7 7 7 7 7 7 7
1 2 3 4 5 6 7 23 8 8 8 8 8 8 8
1 2 3 4 5 6 7 8 24 9 9 9 9 9 9
1 2 3 4 5 6 7 8 9...

result:

ok Correct. (1 test case)

Test #15:

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

input:

16

output:

Yes
17 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 18 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 19 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 20 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 21 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 22 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 23 7 7 7 7 7 7 7 7 7
1 2 3 4 5 6 7 24 8 8 8 8 8 8 8 8
1 2 3 4 5 6 7 8 25 9 9 9 9 9 9 9...

result:

ok Correct. (1 test case)

Test #16:

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

input:

17

output:

Yes
18 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 19 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 20 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 21 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 22 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 23 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 24 7 7 7 7 7 7 7 7 7 7
1 2 3 4 5 6 7 25 8 8 8 8 8 8 8 8 8
1 2 3 4 5 6 7 8 ...

result:

ok Correct. (1 test case)

Test #17:

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

input:

18

output:

Yes
19 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 20 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 21 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 22 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 23 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 24 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 25 7 7 7 7 7 7 7 7 7 7 7
1 2 3 4 5 6 7 26 8 8 8 8 8 8 8 8 8 8
...

result:

ok Correct. (1 test case)

Test #18:

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

input:

19

output:

Yes
20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 21 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 22 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 23 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 24 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 25 6 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 26 7 7 7 7 7 7 7 7 7 7 7 7
1 2 3 4 5 6 7 27 8 8 8 ...

result:

ok Correct. (1 test case)

Test #19:

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

input:

20

output:

Yes
21 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 22 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 23 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 24 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 25 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 26 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 27 7 7 7 7 7 7 7 7 7 7 7 7 7
1 2 3 4 5...

result:

ok Correct. (1 test case)

Test #20:

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

input:

21

output:

Yes
22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 23 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 24 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 25 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 26 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 27 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 28 7 7 7 7 7 7 7 7 7 7 7 7...

result:

ok Correct. (1 test case)

Test #21:

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

input:

22

output:

Yes
23 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 24 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 25 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 26 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 27 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 28 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 29 7 7 7 7 7 7...

result:

ok Correct. (1 test case)

Test #22:

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

input:

23

output:

Yes
24 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 25 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 26 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 27 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 28 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 29 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 2 3 4 5 6 30...

result:

ok Correct. (1 test case)

Test #23:

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

input:

24

output:

Yes
25 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 26 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 27 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 28 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 29 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 30 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 ...

result:

ok Correct. (1 test case)

Test #24:

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

input:

25

output:

Yes
26 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 27 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 28 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 29 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 30 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 31 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...

result:

ok Correct. (1 test case)

Test #25:

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

input:

26

output:

Yes
27 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 28 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 29 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 30 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 31 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 32 6 6 6 6 6 6 6 6 6 ...

result:

ok Correct. (1 test case)

Test #26:

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

input:

27

output:

Yes
28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 29 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 30 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 31 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 32 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 33 6 6 6 6 ...

result:

ok Correct. (1 test case)

Test #27:

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

input:

28

output:

Yes
29 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 31 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 32 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 33 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 2 3 4 5 3...

result:

ok Correct. (1 test case)

Test #28:

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

input:

29

output:

Yes
30 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 31 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 32 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 33 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 34 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1...

result:

ok Correct. (1 test case)

Test #29:

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

input:

30

output:

Yes
31 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 32 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 33 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 34 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 35 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5...

result:

ok Correct. (1 test case)

Test #30:

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

input:

31

output:

Yes
32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 33 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 34 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 35 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 36 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5...

result:

ok Correct. (1 test case)

Test #31:

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

input:

32

output:

Yes
33 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 34 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 35 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 36 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 37 5 5 5 5 5 5 5 5 5 5 5 5 5...

result:

ok Correct. (1 test case)

Test #32:

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

input:

33

output:

Yes
34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 35 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 36 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 37 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 38 5 5 5 5 5 5 5 5 5...

result:

ok Correct. (1 test case)

Test #33:

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

input:

34

output:

Yes
35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 36 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 37 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 38 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 39 5 5 5 5 5...

result:

ok Correct. (1 test case)

Test #34:

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

input:

35

output:

Yes
36 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 37 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 38 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 39 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 3 4 40 5...

result:

ok Correct. (1 test case)

Test #35:

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

input:

36

output:

Yes
37 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 38 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 39 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 40 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 2 ...

result:

ok Correct. (1 test case)

Test #36:

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

input:

37

output:

Yes
38 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 39 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 40 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 41 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #37:

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

input:

38

output:

Yes
39 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 40 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 41 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 42 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #38:

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

input:

39

output:

Yes
40 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 41 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 42 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 43 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #39:

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

input:

40

output:

Yes
41 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 42 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 43 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 44 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #40:

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

input:

41

output:

Yes
42 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 43 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 45 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #41:

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

input:

42

output:

Yes
43 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 44 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 45 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 46 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #42:

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

input:

43

output:

Yes
44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 45 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 47 4 4 4 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #43:

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

input:

44

output:

Yes
45 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 46 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 47 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 48 4 4 4 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #44:

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

input:

45

output:

Yes
46 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 47 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 49 4 4 4 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #45:

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

input:

46

output:

Yes
47 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 48 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 49 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 50 4 4 4 4 ...

result:

ok Correct. (1 test case)

Test #46:

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

input:

47

output:

Yes
48 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 49 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3 51 4 ...

result:

ok Correct. (1 test case)

Test #47:

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

input:

48

output:

Yes
49 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 50 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 51 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 2 3...

result:

ok Correct. (1 test case)

Test #48:

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

input:

49

output:

Yes
50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 51 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...

result:

ok Correct. (1 test case)

Test #49:

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

input:

50

output:

Yes
51 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 52 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
1 2 53 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...

result:

ok Correct. (1 test case)

Extra Test:

score: 0
Extra Test Passed