QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#815240#9874. Matrix Constructionucup-team5109TL 0ms7756kbC++17907b2024-12-15 09:28:512024-12-15 09:28:51

详细

Test #1:

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

input:

2
1 1
2 3

output:

YES
1 
YES
1 2 4 
3 5 6 

result:

ok All test cases passed. (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

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

output:

YES
1 2 4 7 11 15 19 23 27 
3 5 8 12 16 20 24 28 31 
6 9 13 17 21 25 29 32 34 
10 14 18 22 26 30 33 35 36 
YES
1 2 4 7 11 16 22 29 37 46 56 67 
3 5 8 12 17 23 30 38 47 57 68 78 
6 9 13 18 24 31 39 48 58 69 79 88 
10 14 19 25 32 40 49 59 70 80 89 97 
15 20 26 33 41 50 60 71 81 90 98 105 
21 27 34 42 ...

result: