QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#223736#2615. Surround the CatMaMengQiWA 2ms3660kbC++172.2kb2023-10-22 16:17:202023-10-22 16:17:21

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3660kb

input:

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

output:

0 -8
8 0
-8 -8
2 -6
4 -4
6 -2
8 2
3 -5
5 -3
-2 -8
7 -1
1 -7
8 4
8 1
8 8
-4 -8
-1 -8
-6 -8
8 6
8 3
6 8
8 5
8 7
4 8
7 8
5 8
0 8
2 8
-3 -8
-8 0
-8 -6
-8 -4
-5 -8
-8 -2
-6 2
-4 4
-7 -8
-2 6
3 8
1 8
-1 7
-3 5
-5 3
-7 1
-8 -7
-8 -5
-8 -3
-8 -1
-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: 0
Accepted
time: 2ms
memory: 3660kb

input:

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

output:

0 -8
0 8
8 8
2 8
4 8
-2 6
6 8
3 8
1 8
-4 4
-1 7
-3 5
5 8
8 6
7 8
8 7
8 5
8 4
-8 0
8 0
-6 2
8 2
-8 -4
6 -2
-8 -2
4 -4
-5 3
8 3
2 -6
8 1
-7 1
7 -1
5 -3
-8 -8
-8 -6
-2 -8
-8 -3
-4 -8
-8 -1
-6 -8
3 -5
1 -7
-1 -8
-3 -8
-5 -8
-8 -7
-7 -8
-8 -5
-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 #3:

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

input:

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

output:

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

result:

wrong answer Cat reaches the boundary 2 -7