QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#502972#5623. Growing Rectangular Spiralxiaowuc1100 ✓55ms38884kbJava82.1kb2024-08-03 15:40:432024-08-03 15:40:43

詳細信息


Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 55ms
memory: 38884kb

input:

1000
1 1 1
2 3 5
3 8 4
4 5257 5790
5 4790 5384
6 4117 5815
7 8932 2673
8 5198 9849
9 4739 3983
10 4640 3057
11 207 5537
12 3642 2901
13 4470 684
14 1999 7926
15 1070 1466
16 9182 3947
17 6907 3506
18 3604 2251
19 7681 9978
20 6048 4267
21 951 9867
22 2375 521
23 8701 5492
24 1482 7880
25 2671 1009
2...

output:

1 NO PATH
2 2 3 5
3 6 1 2 3 9 10 11
4 2 5257 5790
5 2 4790 5384
6 2 4117 5815
7 6 1 2 3 6264 8934 8935
8 2 5198 9849
9 6 1 2 3 761 4741 4742
10 6 1 2 3 1588 4642 4643
11 2 207 5537
12 6 1 2 3 746 3644 3645
13 6 1 2 3 3791 4472 4473
14 2 1999 7926
15 2 1070 1466
16 6 1 2 3 5240 9184 9185
17 6 1 2 3 3...

result:

ok 1000 lines