QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#223760#2615. Surround the CatZhaoZiLongWA 4ms3436kbC++172.7kb2023-10-22 16:41:282023-10-22 16:41:28

详细

Test #1:

score: 100
Accepted
time: 4ms
memory: 3436kb

input:

0 0
1 0
1 -1
1 -2
1 -3
1 -4
2 -4
2 -5
1 -6
2 -5
3 -4
2 -5
1 -6
2 -5
3 -4
4 -3
5 -2
6 -1
5 -2
4 -3
5 -2
6 -1
7 0
7 1
7 2
7 3
7 2
7 1
7 0
7 1
7 0
6 -1
7 0
7 1
7 0
7 1
7 2
7 1
7 0
6 -1
5 -2
4 -3
5 -2
4 -3
5 -2
6 -1
7 0
6 -1
7 0
6 0
6 -1
7 0
6 -1
7 0
7 1
6 1
5 1
5 0
4 -1
3 -1
4 -1
4 0
3 0
4 1
5 1
6 2
7 ...

output:

0 -8
8 0
-8 -8
4 -4
2 -6
-2 -8
6 -2
3 -5
1 -7
-4 -8
5 -3
-1 -8
-6 -8
8 2
7 -1
8 4
8 1
8 8
8 6
8 3
6 8
8 5
8 7
4 8
7 8
5 8
0 8
2 8
-3 -8
3 8
-8 0
-8 -6
-8 -4
-4 4
-8 -2
-2 6
-6 2
-5 -8
-7 -8
-8 -7
-8 -5
-8 -3
-8 -1
1 8
-7 1
-5 3
-3 5
-1 7
-7 -7
-7 -6
-7 -5
-7 -4
-7 -3
-7 -2
-7 -1
-7 0
-6 -7
-6 -6
-6 ...

result:

ok There is no valid neighbouring location.

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3432kb

input:

0 0
0 1
0 2
0 3
0 4
0 5
0 6
0 7
1 8
1 9

output:

0 -8
0 8
-8 0
8 8
-2 6
2 8
4 8
-1 7
6 8
1 8

result:

wrong answer Cat reaches the boundary 1 9