QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#223768 | #2615. Surround the Cat | ZhaoZiLong | AC ✓ | 5ms | 3748kb | C++17 | 2.8kb | 2023-10-22 16:45:37 | 2023-10-22 16:45:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 5ms
memory: 3736kb
input:
0 0 1 0 1 -1 1 -2 1 -3 1 -4 2 -4 2 -5 1 -6 2 -5 1 -6 0 -7 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 3 -5 1 -7 -1 -8 6 -2 -4 -8 -6 -8 5 -3 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: 0
Accepted
time: 2ms
memory: 3672kb
input:
0 0 0 1 0 2 0 3 0 4 0 5 0 6 -1 6 -2 5 -3 4 -4 3 -3 4 -4 3 -5 2 -6 1 -5 2 -6 1 -5 2 -6 1 -7 0 -6 1 -5 2 -4 3 -5 2 -4 3 -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-6 2 -4 4 -2 6 3 8 -8 -5 1 8 -3 5 -8 -3 -1 7 -5 3 -7 1 -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 #4:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -1 -7 0 -6 0 -6 1...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -5 -8 -8 -2 -2 -8 -8 -5 -8 -3 -3 -8 2 -6 -6 2 -8 -1 -4 4 -7 1 0 8 -2 6 4 -4 -5 3 2 8 8 0 4 8 -3 5 8 8 6 -2 6 8 -1 -8 -1 7 1 8 3 8 1 -7 8 2 8 4 8 6 5 8 3 -5 7 8 8 5 5 -3 8 7 7 -1 8 1 8 3 -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 #5:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
0 0 -1 0 -1 1 -1 2 -2 2 -2 3 -2 4 -2 5 -3 4 -4 3 -5 2 -4 3 -3 4 -4 3 -3 4 -4 3 -5 2 -4 3 -3 4 -2 5 -3 4 -2 5 -3 4 -2 5 -3 4 -2 5 -1 6 -2 5 -1 6 0 7 1 7 0 7 1 7 2 7 3 7 2 7 3 7 4 7 5 7 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-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 #7:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
0 0 0 1 0 2 1 3 1 4 1 5 2 6 2 7 1 7 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -1 6 0 7 -1 6 -2 5 -1 6 0 7 -1 6 -2 5 -3 4 -2 5 -1 6 0 7 1 7 0 7 -1 6 -2 5 -1 6 0 7 -1 6 0 7 1 7 0 7 -1 6 -2 5 -1 6 -2 5 -3 4 -2 5 -1 6 0 7 1 7 0 7 1 7 2 7 1 7 2 7 2 6 3 7 3 6 3 5 2 5 1 5 1 4 1 3 0 2 1 3 0 3 -1 3 -1 4 -2 4 -1 5 0 6 ...
output:
0 -8 0 8 -8 0 4 8 2 8 -2 6 3 8 1 8 -1 7 -4 4 -3 5 8 8 -6 2 6 8 -5 3 -8 -2 8 6 5 8 -7 1 -8 -4 -8 -1 7 8 8 4 -8 -3 -8 -8 -8 -6 8 7 8 5 8 0 8 2 -6 -8 -4 -8 -2 -8 2 -6 -8 -5 4 -4 6 -2 8 3 -8 -7 -7 -8 -5 -8 -3 -8 -1 -8 8 1 1 -7 3 -5 5 -3 7 -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 #8:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
0 0 0 -1 -1 -2 -1 -3 -2 -4 -2 -5 -3 -6 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 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:
ok There is no valid neighbouring location.
Test #10:
score: 0
Accepted
time: 2ms
memory: 3668kb
input:
0 0 0 -1 -1 -2 -1 -3 -1 -4 -1 -5 -2 -6 -2 -7 -3 -7 -4 -7 -3 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 1 -6 0 -7 -1 -7 -2 -7 -3 -7 -2 -7 -1 -7 0 -7 1 -6 2 -5 1 -6 2 -5 3 -4 2 -5 1 -6 0 -7 1 -6 0 -7 -1 -7 0 -7 1 -6 0 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -6 0 -6...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -3 -8 -1 -8 -5 -8 -8 -6 2 -6 -7 -8 -8 -4 -8 -7 -8 -2 4 -4 1 -7 -8 -5 8 0 6 -2 3 -5 5 -3 8 2 7 -1 8 4 8 8 8 6 8 1 8 3 0 8 4 8 6 8 2 8 8 5 8 7 -6 2 -4 4 -2 6 -8 -3 -8 -1 -7 1 -5 3 5 8 -3 5 -1 7 1 8 3 8 7 8 -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 #11:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
0 0 -1 -1 -1 -2 -1 -3 -1 -4 -2 -5 -2 -6 -3 -7 -4 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -4 -7 -3 -7 -2 -7 -3 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 0 -6 1 -5 2 -6 1 -6 0 -5 1 -4 2 -3 2 -2 ...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -3 -8 -5 -8 -8 -6 -7 -8 -8 -7 -8 -4 -8 -2 -8 -5 -8 -3 -6 2 2 -6 -8 -1 -4 4 -7 1 0 8 -2 6 -5 3 2 8 -3 5 4 8 -1 7 1 8 8 0 8 8 4 -4 6 8 3 8 6 -2 8 2 8 4 8 6 5 8 -1 -8 1 -7 7 8 3 -5 5 -3 7 -1 8 1 8 5 8 7 8 3 -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 #12:
score: 0
Accepted
time: 3ms
memory: 3612kb
input:
0 0 0 -1 0 -2 1 -2 1 -3 2 -3 2 -4 2 -5 1 -6 0 -7 1 -6 2 -5 1 -6 0 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 0 -7 1 -6 2 -5 3 -4 2 -5 1 -6 2 -5 3 -4 2 -5 1 -6 2 -5 1 -6 0 -7 1 -6 2 -5 3 -4 2 -5 3 -4 4 -3 3 -4 4 -3 3 -4 4 -3 5 -2 4 -3 5 -2 6 -1 7 0 6 -1 6 0 7 1 6 1 6 0 6 -1 7 0 6 0 7 0 6 0 6 1 5 1 5 0 5 1 5 2 5 3 ...
output:
0 -8 -8 -8 8 0 4 -4 2 -6 6 -2 3 -5 1 -7 -1 -8 -2 -8 -4 -8 5 -3 -6 -8 -3 -8 -5 -8 -8 -6 8 2 -7 -8 7 -1 -8 -4 8 4 8 1 8 8 8 6 8 3 8 5 8 7 -8 0 -8 -7 0 8 -8 -2 -8 -5 4 8 6 8 2 8 -6 2 -4 4 5 8 -2 6 7 8 -8 -3 3 8 -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 #13:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
0 0 -1 0 -1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 -8 -3 -5 -8 -6 2 2 -6 -8 -1 -3 -8 -1 -8 -4 4 4 -4 -7 1 0 8 8 0 -2 6 1 -7 8 8 6 -2 3 -5 8 2 8 4 5 -3 8 6 -5 3 2 8 7 -1 8 1 4 8 6 8 -3 5 -1 7 1 8 3 8 8 3 5 8 8 5 7 8 8 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 #15:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
0 0 -1 -1 -1 -2 -2 -3 -2 -4 -2 -5 -3 -6 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -4 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 2 -5 1 -6 0 -7 -1 -7 0 -7 0 -6 1 -5 1 -6 0 -6 1 -5 0 -...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -5 -8 -3 -8 2 -6 -1 -8 1 -7 4 -4 8 0 6 -2 3 -5 5 -3 -8 -6 -7 -8 8 2 7 -1 -8 -4 8 4 -8 -7 -8 -2 -8 -5 8 1 8 8 8 6 8 3 0 8 -6 2 -4 4 -8 -3 -2 6 -8 -1 -7 1 2 8 4 8 6 8 8 5 8 7 -5 3 5 8 7 8 3 8 -3 5 -1 7 1 8 -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 #16:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
0 0 -1 -1 -1 -2 -2 -3 -2 -4 -3 -5 -3 -6 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -7 -7 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8 8 0 8 8 2 -6 4 -4 -3 -8 6 -2 6 8 -1 -8 1 8 1 -7 3 8 8 2 8 4 8 6 5 8 7 8 8 5 8 7 8 3 3 -5 5 -3 7 -1 8 1 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -1 -7 -2 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #18:
score: 0
Accepted
time: 3ms
memory: 3732kb
input:
0 0 -1 -1 -1 -2 -1 -3 -1 -4 -1 -5 -1 -6 -2 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 0 -7 1 -6 2 -5 3 -4 4 -3 5 -2 4 -3 5 -2 4 -3 3 -4 4 -3 3 -4 2 -5 3 -4 2 -5 1 -6 2 -5 3 -4 2 -5 1 -6 2 -5 1 -6 2 -5 3 -4 4 -3 3 -4 2 -5 1 -6 2 -5 1 -6 2 -5 3 -4 2 -4 2 -3 3 -2 2 -2 1 -3 0 -3 1 -3 2 -2 1 -3 ...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -3 -8 -1 -8 -5 -8 2 -6 1 -7 4 -4 8 0 6 -2 3 -5 5 -3 8 2 -8 -6 7 -1 8 4 8 1 8 8 8 6 8 3 6 8 4 8 -8 -4 8 5 8 7 -7 -8 0 8 -8 -2 -8 -7 2 8 -8 -5 -6 2 -4 4 -2 6 -8 -3 5 8 7 8 3 8 -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 #19:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
0 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 2 7 3 7 4 7 5 7 6 7 5 7 6 7 5 7 4 7 3 7 2 7 3 7 2 7 1 7 0 7 -1 6 -2 5 -1 6 0 7 1 7 0 7 -1 6 -2 5 -3 4 -4 3 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-8 -5 -8 -3 -8 -1 1 8 -7 1 -3 5 -1 7 -5 3 -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 #21:
score: 0
Accepted
time: 3ms
memory: 3656kb
input:
0 0 -1 0 -2 -1 -3 -1 -4 -2 -5 -2 -6 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -5 2 -6 1 -7 0 -6 1 -5 2 -6 1 -5 2 -4 3 -5 2 -4 3 -3 4 -2 5 -1 6 -2 5 -1 6 -2 5 -1 6 -2 5 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -1 6 -2 5 -1 6 0 7 -1 6 0 7 1 7 2 7 3 7 2 7 3 7 2 7 1 7 0 7 0 6 -1 6 0 6 -1 6 -1 5 0 5 -1 5 0 6 -1 5...
output:
0 -8 -8 0 -8 -8 -8 -6 -8 -4 -8 -2 -8 -5 -8 -3 -6 2 -8 -1 -7 1 -4 4 -5 3 -2 6 0 8 -3 5 2 8 -1 7 -6 -8 4 8 1 8 8 8 6 8 3 8 8 6 5 8 8 4 7 8 8 5 8 7 8 0 8 2 -4 -8 -2 -8 2 -6 4 -4 6 -2 8 3 -8 -7 -7 -8 -5 -8 -3 -8 8 1 -1 -8 1 -7 5 -3 7 -1 3 -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 #22:
score: 0
Accepted
time: 3ms
memory: 3736kb
input:
0 0 1 1 2 2 3 2 4 2 5 3 6 4 7 4 7 3 7 2 7 3 7 4 7 3 7 2 7 3 7 4 7 5 7 6 7 5 7 6 7 7 7 6 7 7 6 7 7 7 6 7 5 7 4 7 5 7 6 7 5 7 4 7 5 7 6 7 7 7 7 6 7 7 6 7 7 7 6 7 7 7 6 7 7 7 7 6 7 7 7 6 7 7 6 7 5 6 4 5 4 6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 -7 -3 -7 -2 -7 -1 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #24:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
0 0 -1 0 -1 1 -1 2 -2 2 -3 2 -3 3 -4 3 -5 2 -4 3 -5 2 -4 3 -3 4 -2 5 -1 6 -2 5 -3 4 -4 3 -5 2 -4 3 -5 2 -4 3 -5 2 -6 1 -7 0 -7 -1 -7 -2 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -5 -7 -4 -7 -3 -7 -2 -6 -2 -7 -3 -7 -2 -7 -1 -7 -2 -6 -1 -6 ...
output:
0 -8 -8 0 0 8 -4 4 -6 2 -2 6 -5 3 -3 5 -7 1 -8 -2 -8 -4 2 8 -1 7 4 8 1 8 8 8 -8 -1 -8 -3 -8 -8 -8 -6 -6 -8 6 8 -8 -5 -4 -8 -8 -7 -7 -8 -2 -8 -5 -8 8 0 3 8 2 -6 8 4 4 -4 8 6 6 -2 8 2 -3 -8 5 8 -1 -8 1 -7 3 -5 5 -3 7 -1 7 8 8 1 8 3 8 5 8 7 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -1 -7 -2 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #25:
score: 0
Accepted
time: 3ms
memory: 3596kb
input:
0 0 -1 0 -1 1 -2 1 -3 1 -4 1 -4 2 -5 2 -4 3 -3 4 -4 3 -5 2 -6 1 -5 2 -4 3 -3 4 -4 3 -5 2 -4 3 -5 2 -6 1 -7 0 -6 1 -7 0 -7 -1 -7 0 -6 1 -5 2 -4 3 -3 4 -4 3 -5 2 -6 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 -2 -6 -2 -6 -3 -7 -3 -6 -3 -7 -3 -6 -2 -5 -2 -5 -...
output:
0 -8 -8 0 0 8 -4 4 -6 2 -8 -2 -5 3 -7 1 -3 5 -2 6 2 8 -8 -4 -8 -1 -1 7 4 8 1 8 -8 -3 -8 -8 8 8 -8 -6 -6 -8 -8 -5 -4 -8 -8 -7 -7 -8 8 0 6 8 3 8 8 4 8 6 5 8 -2 -8 -5 -8 2 -6 4 -4 6 -2 -3 -8 8 2 -1 -8 1 -7 3 -5 5 -3 7 -1 7 8 8 1 8 3 8 5 8 7 -7 -7 -7 -6 -7 -5 -7 -4 -7 -2 -7 -3 -7 -1 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #26:
score: 0
Accepted
time: 3ms
memory: 3732kb
input:
0 0 -1 0 -2 0 -2 1 -3 1 -3 2 -4 2 -5 2 -6 1 -7 0 -6 1 -7 0 -6 1 -5 2 -4 3 -5 2 -6 1 -5 2 -4 3 -3 4 -4 3 -5 2 -6 1 -5 2 -4 3 -3 4 -2 5 -1 6 -2 5 -1 6 0 7 -1 6 -2 5 -3 4 -4 3 -3 4 -4 3 -5 2 -4 3 -5 2 -4 3 -5 2 -4 3 -3 4 -4 3 -3 4 -4 3 -5 2 -4 2 -4 3 -3 4 -4 3 -3 3 -2 3 -1 3 -1 2 0 2 1 3 1 2 2 3 2 2 1 ...
output:
0 -8 -8 0 -8 -8 -4 4 -6 2 -2 6 -5 3 -7 1 -8 -1 -8 -2 -8 -4 0 8 -8 -6 -3 5 2 8 -1 7 -8 -3 4 8 1 8 8 8 6 8 -6 -8 -8 -5 -4 -8 3 8 8 4 8 6 5 8 7 8 8 7 8 5 8 0 -2 -8 8 2 -8 -7 2 -6 -7 -8 -5 -8 4 -4 6 -2 -3 -8 8 3 -1 -8 8 1 1 -7 3 -5 5 -3 7 -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 #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2 6 -5 3 -3 5 2 8 -1 7 -8 -2 4 8 -7 1 -8 -4 -8 -1 -8 -3 1 8 -8 -8 -8 -6 -6 -8 -8 -5 8 8 -8 -7 -4 -8 -7 -8 8 0 -2 -8 -5 -8 6 8 3 8 2 -6 4 -4 6 -2 -3 -8 -1 -8 1 -7 3 -5 8 2 8 4 8 6 5 -3 5 8 7 -1 7 8 8 1 8 3 8 5 8 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 #29:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 6 7 5 7 4 7 5 7 4 7 3 7 2 7 1 7 2 7 1 7 0 7 1 7 0 7 -1 6 0 7 1 7 2 7 3 7 2 7 3 7 2 7 3 7 4 7 3 7 4 7 3 7 4 7 5 7 4 7 3 7 2 7 1 7 0 7 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -1 6 -2 5 -3 4 -2 5 -1 5 -2 4 -1 5 0 6 0 7 0 6 0 5 1 5 2 6 2 5 3 5 4 6 5 6 6 6 7 6 7 5 6 4 7 4 6 3 6 4...
output:
0 -8 8 8 0 8 6 8 8 6 4 8 7 8 5 8 2 8 3 8 8 4 -2 6 1 8 -4 4 -1 7 -3 5 -8 0 -6 2 -8 -2 -5 3 -7 1 -8 -4 8 7 8 5 8 0 8 2 4 -4 6 -2 8 3 8 1 2 -6 5 -3 -8 -3 7 -1 -8 -8 -8 -6 -8 -1 -6 -8 -4 -8 -2 -8 -8 -5 -8 -7 -7 -8 -5 -8 -3 -8 -1 -8 1 -7 3 -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 #30:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
0 0 -1 -1 -1 -2 -1 -3 -1 -4 -2 -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-3 5 -8 0 -6 2 -8 -2 4 -4 -8 -4 -5 3 2 -6 8 1 -7 1 5 -3 -8 -3 -8 -1 -8 -8 -8 -6 -6 -8 7 -1 -4 -8 -2 -8 3 -5 -8 -5 1 -7 -3 -8 -8 -7 -7 -8 -5 -8 -1 -8 -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 #32:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
0 0 0 1 0 2 0 3 1 4 2 5 2 6 3 7 2 7 1 7 0 7 -1 6 0 7 -1 6 -2 5 -3 4 -2 5 -1 6 -2 5 -1 6 -2 5 -3 4 -4 3 -5 2 -4 3 -5 2 -4 3 -3 4 -4 3 -3 4 -4 3 -3 4 -4 3 -3 4 -2 5 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -3 4 -4 3 -3 4 -4 3 -5 2 -4 2 -3 3 -4 3 -5 2 -4 3 -5 2 -6 1 -6 0 -5 1 -5 0 -6 -1 -5 -1 -5 0 -6 -1 -5...
output:
0 -8 0 8 -8 0 -2 6 4 8 2 8 3 8 5 8 1 8 -1 7 -4 4 -3 5 8 8 -6 2 -5 3 -8 -2 6 8 8 6 -7 1 -8 -4 -8 -1 -8 -3 -8 -8 -8 -6 -6 -8 -8 -5 -4 -8 8 4 8 0 -2 -8 8 2 7 8 -8 -7 8 5 8 7 2 -6 4 -4 6 -2 8 3 -7 -8 8 1 -5 -8 -3 -8 -1 -8 1 -7 3 -5 5 -3 7 -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 #33:
score: 0
Accepted
time: 3ms
memory: 3684kb
input:
0 0 1 0 2 0 3 0 4 0 4 -1 5 -1 5 -2 6 -1 7 0 7 1 7 2 7 3 7 2 7 3 7 4 7 5 7 4 7 5 7 6 7 5 7 6 7 5 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-8 -6 2 -6 5 -3 7 -1 -6 -8 -4 -8 -2 -8 -8 -5 3 -5 -8 -7 1 -7 -7 -8 -5 -8 -3 -8 -1 -8 -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 #35:
score: 0
Accepted
time: 3ms
memory: 3608kb
input:
0 0 1 0 2 0 2 -1 2 -2 3 -2 4 -2 4 -3 5 -2 6 -1 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 5 7 6 7 5 7 4 7 5 7 6 7 5 7 6 7 5 7 6 7 7 6 7 5 7 6 7 5 7 4 7 3 7 2 7 1 7 2 7 3 7 4 7 3 7 2 7 3 7 4 7 3 7 2 7 1 7 2 7 1 7 0 6 0 5 -1 5 0 5 0 6 0 5 -1 5 0 6 1 6 2 6 2 7 1 6 0 5 -1 5 -1 6 0 6 -1 6 -1 5 -1 4 0 4 0 3 1 3 0 3 1 ...
output:
0 -8 8 0 8 8 4 -4 2 -6 6 -2 5 -3 3 -5 7 -1 8 1 8 2 8 3 8 4 8 5 8 6 8 7 7 8 6 8 4 8 5 8 0 8 2 8 -2 6 3 8 -4 4 1 8 -1 7 -3 5 -8 0 -6 2 -5 3 -8 -8 -8 -2 -8 -4 -7 1 -8 -1 -8 -6 -8 -3 -6 -8 -4 -8 -2 -8 -8 -5 -8 -7 1 -7 -7 -8 -5 -8 -3 -8 -1 -8 -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 #36:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
0 0 -1 -1 -1 -2 -1 -3 -1 -4 -1 -5 -2 -6 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7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8 8 3 5 8 8 5 7 8 8 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 #38:
score: 0
Accepted
time: 3ms
memory: 3748kb
input:
0 0 1 1 2 2 3 3 4 3 5 4 6 4 7 5 7 4 7 5 7 4 7 5 7 4 7 3 7 2 7 3 7 2 7 3 7 4 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 5 7 6 7 7 6 7 7 7 6 7 7 7 6 7 7 7 6 7 7 7 6 7 7 7 6 7 5 7 6 7 7 7 7 6 6 5 5 4 5 3 4 2 4 3 4 2 4 1 3 0 2 0 2 -1 1 -1 2 -1 2 0 2 1 2 0 2 -1 2 0 1 0 0 -1 1 0 2 1 1 1 1 0...
output:
0 -8 8 8 0 8 6 8 8 4 8 6 8 5 8 7 8 3 8 2 8 0 4 8 6 -2 8 1 4 -4 7 -1 2 -6 7 8 2 8 5 -3 -2 -8 5 8 -4 4 -4 -8 -2 6 3 -5 3 8 1 -7 1 8 -3 -8 -3 5 -1 -8 -1 7 -8 -8 -8 0 -6 2 -8 -2 -8 -6 -8 -4 -6 -8 -5 3 -7 1 -8 -3 -8 -7 -8 -1 -8 -5 -7 -8 -5 -8 -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 #39:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 6 7 5 7 4 7 3 7 4 7 5 7 6 7 5 7 6 7 5 7 6 7 7 7 6 7 5 7 4 7 3 7 4 7 5 7 4 7 3 7 4 7 3 7 4 7 3 7 4 7 3 7 4 7 3 7 2 7 1 7 0 7 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -1 6 -1 5 0 6 0 7 0 6 1 6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 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #41:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -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 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -6 -4 -6 -3...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -8 -5 -8 -2 -2 -8 -5 -8 -8 -3 -3 -8 2 -6 -1 -8 4 -4 1 -7 8 0 -6 2 6 -2 -4 4 3 -5 8 2 8 8 8 4 5 -3 8 6 7 -1 8 1 0 8 -2 6 -8 -1 -7 1 -5 3 2 8 4 8 6 8 -3 5 -1 7 1 8 3 8 8 3 5 8 8 5 7 8 8 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 #42:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
0 0 0 1 1 2 1 3 2 4 3 5 3 6 4 7 3 7 4 7 5 7 6 7 5 7 6 7 7 7 6 7 7 7 6 7 5 7 6 7 7 7 6 7 5 7 6 7 5 7 6 7 5 7 4 7 5 7 6 7 7 7 6 7 7 7 6 7 5 7 4 7 3 7 4 7 5 7 4 7 3 7 2 7 3 7 2 7 1 7 2 7 3 7 2 7 2 6 3 6 4 6 3 6 2 5 3 5 4 5 3 5 4 5 4 6 4 7 3 7 2 6 3 6 3 7 4 7 5 7 5 6 4 5 4 6 3 6 2 6 1 5 2 6 3 7 2 7 1 7 ...
output:
0 -8 0 8 8 8 4 8 2 8 6 8 3 8 5 8 -2 6 8 6 7 8 8 7 8 4 8 5 8 0 8 2 8 3 6 -2 1 8 -4 4 8 1 -1 7 4 -4 -3 5 -8 0 7 -1 -6 2 -5 3 5 -3 -8 -8 2 -6 -8 -2 -8 -6 -8 -4 -6 -8 -7 1 -8 -3 -4 -8 -2 -8 -8 -1 -8 -5 3 -5 -8 -7 1 -7 -7 -8 -5 -8 -3 -8 -1 -8 -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 #43:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
0 0 -1 -1 -2 -2 -3 -2 -4 -2 -5 -2 -6 -2 -7 -2 -7 -1 -7 -2 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -6...
output:
0 -8 -8 -8 -8 0 -8 -6 -8 -4 -8 -2 -8 -3 -8 -1 -7 1 -6 2 -8 -5 -6 -8 -8 -7 -7 -8 -4 -8 -4 4 0 8 -2 -8 -5 -8 2 -6 -3 -8 4 -4 -2 6 -1 -8 1 -7 -5 3 8 0 8 8 6 -2 3 -5 2 8 4 8 -3 5 -1 7 6 8 1 8 3 8 8 2 8 4 8 6 5 -3 5 8 7 -1 7 8 8 1 8 3 8 5 8 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 #44:
score: 0
Accepted
time: 3ms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3 -7 1 -5 3 -4 4 -3 5 -2 6 0 8 2 8 -1 7 4 8 1 8 8 8 -8 -6 -6 -8 6 8 -8 -5 3 8 8 4 -4 -8 8 6 5 8 8 5 8 0 -2 -8 8 2 7 8 -8 -7 8 7 2 -6 4 -4 -7 -8 6 -2 8 3 -5 -8 8 1 5 -3 -3 -8 7 -1 -1 -8 1 -7 3 -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 #46:
score: 0
Accepted
time: 3ms
memory: 3684kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -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 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -2 -7 -1 -7 -1 -6 0 ...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -5 -8 -2 -8 -8 -2 -3 -8 -8 -5 2 -6 -6 2 -1 -8 -8 -3 4 -4 1 -7 8 0 6 -2 -4 4 3 -5 8 2 8 8 8 4 5 -3 8 6 7 -1 8 1 0 8 -2 6 -8 -1 -7 1 -5 3 2 8 4 8 6 8 -3 5 -1 7 1 8 3 8 8 3 8 5 8 7 5 8 7 8 -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 #47:
score: 0
Accepted
time: 3ms
memory: 3748kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 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 7 4 8 7 8 5 8 0 8 2 8 -3 -8 -5 -8 -8 0 -4 4 -8 -6 -8 -4 -8 -2 -6 2 -2 6 3 8 -7 -8 -8 -7 1 8 -3 5 -8 -5 -1 7 -8 -3 -8 -1 -7 1 -5 3 -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 #49:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
0 0 -1 0 -2 0 -2 1 -2 2 -2 3 -3 3 -4 3 -5 2 -4 3 -3 4 -2 5 -1 6 -2 5 -3 4 -2 5 -3 4 -4 3 -3 4 -4 3 -3 4 -2 5 -3 4 -4 3 -3 4 -2 5 -3 4 -4 3 -5 2 -6 1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -5 1 -4 1 -4 0 -4 -1 -4 -2 -3 -2 -4 -2 -3 -1 -4 -2...
output:
0 -8 -8 0 -8 -8 -4 4 -6 2 -2 6 -5 3 -3 5 -7 1 0 8 2 8 -1 7 1 8 4 8 -8 -2 8 8 -8 -4 -8 -1 6 8 -8 -6 3 8 8 6 -8 -3 -6 -8 8 4 5 8 8 5 -4 -8 -8 -5 -8 -7 -7 -8 8 0 -2 -8 -5 -8 2 -6 4 -4 6 -2 -3 -8 8 2 -1 -8 1 -7 3 -5 5 -3 7 -1 7 8 8 7 8 1 8 3 -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 #50:
score: 0
Accepted
time: 3ms
memory: 3600kb
input:
0 0 1 0 2 1 3 1 4 1 5 2 6 2 7 2 7 3 7 4 7 5 7 4 7 5 7 4 7 3 7 4 7 5 7 6 7 7 7 6 7 5 7 6 7 7 7 6 7 7 7 6 7 7 7 6 7 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6 -2 8 2 8 4 8 6 5 8 -1 -8 7 8 1 -7 3 -5 5 -3 7 -1 8 1 8 3 8 5 8 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 #52:
score: 0
Accepted
time: 2ms
memory: 3668kb
input:
0 0 0 1 0 2 -1 2 -2 2 -3 2 -3 3 -3 4 -2 5 -3 4 -4 3 -3 4 -2 5 -1 6 0 7 -1 6 0 7 -1 6 0 7 1 7 2 7 1 7 2 7 1 7 2 7 1 7 2 7 3 7 2 7 3 7 4 7 5 7 4 7 5 7 4 7 3 7 4 7 3 7 4 7 5 7 6 7 5 7 4 7 3 7 2 7 3 7 2 7 3 7 2 6 2 5 1 4 2 5 2 6 2 7 1 7 1 6 2 7 2 6 1 5 0 4 1 5 2 5 2 6 1 6 0 5 1 6 0 5 0 6 -1 5 -2 4 -3 3 ...
output:
0 -8 0 8 -8 0 -4 4 -6 2 -2 6 -5 3 -3 5 -1 7 2 8 -8 -2 4 8 1 8 8 8 6 8 3 8 5 8 8 6 -7 1 7 8 8 4 8 7 8 5 8 0 8 2 -8 -4 4 -4 6 -2 2 -6 8 3 8 1 5 -3 7 -1 -8 -8 -8 -6 -8 -3 -6 -8 -8 -1 -4 -8 -2 -8 3 -5 -8 -5 -8 -7 1 -7 -7 -8 -5 -8 -3 -8 -1 -8 -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 #53:
score: 0
Accepted
time: 3ms
memory: 3736kb
input:
0 0 0 -1 0 -2 1 -2 1 -3 2 -3 2 -4 2 -5 3 -4 4 -3 3 -4 2 -5 3 -4 4 -3 5 -2 4 -3 5 -2 4 -3 3 -4 4 -3 5 -2 6 -1 7 0 6 -1 7 0 7 1 7 2 7 3 7 2 7 1 7 2 7 1 7 0 6 -1 5 -2 6 -1 7 0 7 1 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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 #55:
score: 0
Accepted
time: 3ms
memory: 3604kb
input:
0 0 0 -1 0 -2 -1 -3 -1 -4 -1 -5 -1 -6 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 1 -6 2 -5 1 -6 0 -7 1 -6 2 -5 1 -6 0 -7 -1 -7 0 -6 0 -7 0 -6 1 -6 0 -7 1 -...
output:
0 -8 -8 -8 8 0 -6 -8 -4 -8 -2 -8 -3 -8 -1 -8 2 -6 1 -7 4 -4 6 -2 3 -5 -5 -8 5 -3 -8 -6 -7 -8 -8 -4 -8 -7 -8 0 -8 -2 -8 -5 -6 2 -8 -3 -4 4 -8 -1 8 8 0 8 -7 1 -2 6 8 2 8 4 8 6 -5 3 7 -1 8 1 8 3 2 8 4 8 6 8 8 5 8 7 -3 5 5 8 7 8 3 8 -1 7 1 8 -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 #56:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
0 0 0 1 1 2 1 3 2 4 3 5 3 6 4 7 5 7 6 7 5 7 4 7 5 7 4 7 5 7 6 7 5 7 6 7 5 7 4 7 3 7 4 7 5 7 6 7 7 7 6 7 7 7 7 6 7 7 7 6 7 5 7 4 7 5 7 6 7 7 6 7 5 7 4 7 3 7 2 7 3 7 2 7 3 7 4 7 3 7 2 7 3 7 4 7 4 6 5 6 6 7 6 6 6 7 7 7 6 7 7 7 6 7 6 6 6 5 7 5 6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6 ...
result:
ok There is no valid neighbouring location.
Test #58:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
0 0 -1 0 -2 0 -3 0 -4 0 -5 0 -6 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -7 0 -7 -1 -6 -1 -5 0 -5 -1 -6 -2 -5 -1 -4 -1...
output:
0 -8 -8 0 -8 -8 -8 -2 -6 2 -8 -4 -8 -1 -8 -3 -8 -6 -7 1 -4 4 0 8 -8 -5 -2 6 -6 -8 -5 3 -3 5 2 8 -8 -7 -1 7 -4 -8 -7 -8 -2 -8 4 8 -5 -8 8 0 8 8 2 -6 4 -4 -3 -8 6 -2 6 8 -1 -8 1 8 1 -7 3 8 8 2 8 4 8 6 5 8 7 8 8 5 3 -5 8 7 5 -3 8 3 7 -1 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 #59:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
0 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 -1 6 -2 5 -1 6 0 7 -1 6 0 7 -1 6 0 7 1 7 0 7 -1 6 0 7 1 7 0 7 1 7 2 7 3 7 2 7 3 7 2 7 3 7 4 7 3 7 4 7 3 7 4 7 3 7 2 7 1 7 0 7 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -2 4 -1 5 -2 5 -1 6 -2 5 -1 5 -2 5 -2 4 -2 5 -2 4 -3 3 -2 4 -1 4 -2 4 -2 5 -1 5 -1 6 0 6 1 6 0 5...
output:
0 -8 0 8 -8 0 -2 6 2 8 -4 4 -1 7 1 8 -3 5 -6 2 4 8 8 8 6 8 3 8 -5 3 5 8 8 6 -8 -2 -7 1 7 8 8 4 -8 -4 8 7 8 5 8 0 8 2 4 -4 6 -2 8 3 8 1 2 -6 5 -3 -8 -3 7 -1 -8 -1 -8 -8 -8 -6 -6 -8 -4 -8 -2 -8 -8 -5 -8 -7 -7 -8 -5 -8 -3 -8 -1 -8 1 -7 3 -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 #60:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 6 7 5 7 6 7 7 7 6 7 7 7 6 7 5 7 6 7 7 7 7 6 7 7 6 7 7 7 7 6 7 7 6 7 5 7 4 7 5 7 4 7 5 7 4 7 3 7 4 7 5 7 4 7 3 7 4 7 3 7 4 7 3 7 2 7 1 7 0 7 -1 6 0 7 1 7 0 7 -1 6 -2 5 -1 5 -1 4 -2 4 -1 5 -2 4 -1 4 0 5 0 4 0 3 1 4 1 5 1 4 1 5 1 4 1 5 2 6 3 7 4 7 5 7 4 7 4 6 4 7 3 6 2 6 3 6...
output:
0 -8 8 8 0 8 6 8 8 6 4 8 7 8 5 8 2 8 8 7 8 4 8 2 8 5 3 8 8 0 -2 6 8 3 6 -2 1 8 -4 4 8 1 4 -4 -1 7 -3 5 -8 0 -6 2 2 -6 -5 3 5 -3 -7 1 -8 -2 7 -1 -8 -8 -8 -4 -8 -6 -6 -8 -8 -3 -4 -8 -8 -1 -2 -8 -8 -5 -8 -7 -7 -8 -5 -8 3 -5 -3 -8 -1 -8 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 #61:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
0 0 -1 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 -8 -1 -8 -3 4 8 1 8 8 8 6 8 3 8 -8 -8 -8 -6 8 4 -6 -8 -8 -5 -4 -8 8 6 5 8 -8 -7 -7 -8 8 0 -2 -8 -5 -8 2 -6 4 -4 6 -2 8 2 -3 -8 -1 -8 1 -7 7 8 3 -5 5 -3 7 -1 8 1 8 5 8 3 8 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 #63:
score: 0
Accepted
time: 3ms
memory: 3604kb
input:
0 0 -1 0 -2 0 -3 0 -4 0 -5 0 -6 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -7 0 -7 -1 -6 -1 -7 -1 -7 0 -6 1 -7 0 -6 1 -...
output:
0 -8 -8 0 -8 -8 -8 -2 -6 2 -8 -4 -8 -1 -8 -3 -8 -6 -7 1 -4 4 0 8 -8 -5 -2 6 -6 -8 -5 3 -8 -7 2 8 -3 5 -4 -8 -1 7 4 8 -7 -8 8 0 -2 -8 -5 -8 8 8 2 -6 4 -4 -3 -8 6 -2 6 8 -1 -8 1 8 1 -7 3 8 8 2 8 4 8 6 5 8 7 8 8 5 3 -5 8 7 5 -3 8 3 7 -1 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 #64:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
0 0 1 0 2 0 3 0 4 0 5 0 6 0 6 -1 5 -2 6 -1 5 -2 6 -1 5 -2 6 -1 5 -2 6 -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 7 -1 5 -3 3 -5 -8 -8 -2 -8 -4 -8 -6 -8 -8 -6 1 -7 -3 -8 -8 -4 -1 -8 -5 -8 -7 -8 -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 #66:
score: 0
Accepted
time: 3ms
memory: 3608kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -6 -4 -7 -4 -7...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -8 -5 -8 -2 -4 -8 -2 -8 -5 -8 -8 -3 -6 2 -3 -8 2 -6 -8 -1 -1 -8 -4 4 4 -4 -7 1 1 -7 0 8 8 0 8 8 -2 6 6 -2 3 -5 8 2 -5 3 2 8 8 4 4 8 6 8 8 6 5 -3 -3 5 7 -1 -1 7 8 1 1 8 8 3 3 8 5 8 7 8 8 5 8 7 -7 -7 -7 -6 -7 -4 -7 -5 -7 -3 -7 -2 -7 -1 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #67:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
0 0 1 0 2 0 3 0 4 0 5 0 6 0 6 -1 5 -2 6 -1 5 -2 6 -1 7 0 7 1 7 0 6 -1 7 0 6 -1 5 -2 6 -1 5 -2 4 -3 3 -4 4 -3 3 -4 4 -3 3 -4 4 -3 3 -4 4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 4 8 6 5 8 7 8 8 5 3 -5 8 7 5 -3 8 3 7 -1 8 1 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -1 -7 -2 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #69:
score: 0
Accepted
time: 3ms
memory: 3612kb
input:
0 0 -1 0 -2 0 -3 0 -4 -1 -5 -1 -6 -1 -7 -1 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 -1 -7 -2 -7 -1 -7 0 -6 1 -7 0 -7 -1 -7 0 -6 1 -7 0 -7 -1 -7 -2 -7 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 1 -7 0 -6 1 -7 0 -6 1 -5 2 -4 3 -3 4 -2 5 -3 4 -2 5 -2 4 -2 5 -1 5 -1 4 0 5 1...
output:
0 -8 -8 0 -8 -8 -8 -2 -8 -4 -6 2 -8 -3 -8 -1 -8 -6 -7 1 -4 4 0 8 -2 6 -8 -5 -6 -8 -5 3 -3 5 2 8 -8 -7 -4 -8 -1 7 4 8 -7 -8 8 0 -2 -8 -5 -8 8 8 2 -6 4 -4 -3 -8 6 -2 6 8 -1 -8 1 8 1 -7 3 8 8 2 8 4 8 6 5 8 7 8 8 5 3 -5 8 7 8 3 8 1 5 -3 7 -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 #70:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
0 0 0 1 1 2 2 3 3 4 4 5 4 6 5 7 6 7 5 7 4 7 5 7 6 7 7 7 7 6 7 7 6 7 5 7 6 7 7 7 6 7 7 7 6 7 5 7 4 7 3 7 4 7 3 7 2 7 1 7 2 7 3 7 2 7 1 7 2 7 1 7 0 7 -1 6 -2 5 -1 6 -2 5 -1 6 0 7 -1 6 0 7 1 7 0 7 1 7 2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-7 -4 -7 -3 -7 -2 -7 -1 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #72:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
0 0 1 0 2 1 3 2 4 3 5 3 6 3 7 3 7 4 7 5 7 4 7 5 7 6 7 7 7 6 7 7 7 6 7 5 7 4 7 5 7 6 7 5 7 6 7 5 7 4 7 3 7 4 7 3 7 4 7 3 7 4 7 5 7 4 7 5 7 4 7 3 7 4 7 5 7 6 7 7 7 6 7 5 7 6 7 7 7 6 7 5 7 6 7 5 7 4 6 3 7 3 6 3 6 4 6 3 6 2 6 3 7 3 7 4 7 3 6 2 5 1 5 2 6 2 6 1 6 2 6 3 7 4 7 5 7 6 7 5 6 4 7 5 6 4 6 3 5 2 ...
output:
0 -8 8 0 8 8 8 4 8 6 8 2 8 3 8 5 6 8 8 7 6 -2 4 8 7 8 5 8 0 8 2 8 -2 6 8 1 4 -4 7 -1 3 8 2 -6 -4 4 5 -3 -2 -8 -4 -8 3 -5 1 -7 1 8 -3 -8 -3 5 -1 7 -8 -8 -8 0 -6 -8 -6 2 -8 -6 -8 -4 -8 -2 -5 3 -1 -8 -5 -8 -7 -8 -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 #73:
score: 0
Accepted
time: 3ms
memory: 3744kb
input:
0 0 1 0 2 1 3 1 4 1 5 1 6 1 7 1 7 0 7 1 7 0 7 1 7 2 7 1 7 0 7 1 7 2 7 3 7 4 7 3 7 2 7 1 7 2 7 3 7 2 7 1 7 0 7 1 7 2 7 1 7 2 7 3 7 2 7 3 7 4 7 3 7 4 7 5 7 6 7 5 7 4 7 5 7 4 7 3 7 4 7 3 7 4 7 3 7 4 7 3 7 4 7 3 6 2 6 1 5 0 4 0 4 1 3 1 2 1 3 2 2 2 3 2 2 1 2 0 3 0 4 0 4 -1 4 -2 5 -1 5 0 6 0 6 -1 6 0 5 0 ...
output:
0 -8 8 0 8 8 8 4 8 2 6 -2 8 3 8 1 7 -1 8 6 4 -4 2 -6 8 5 5 -3 3 -5 6 8 8 7 4 8 7 8 5 8 2 8 -2 -8 1 -7 0 8 -4 -8 -1 -8 -3 -8 3 8 -8 -8 -8 0 -4 4 -2 6 -6 -8 -6 2 1 8 -8 -6 -3 5 -1 7 -8 -4 -8 -2 -5 -8 -5 3 -7 -8 -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 #74:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
0 0 1 0 2 0 2 -1 3 -1 4 -1 4 -2 4 -3 5 -2 6 -1 7 0 6 -1 7 0 6 -1 7 0 6 -1 5 -2 6 -1 7 0 7 1 7 2 7 3 7 2 7 3 7 2 7 1 7 0 6 -1 5 -2 4 -3 3 -4 4 -3 3 -4 2 -5 1 -6 0 -7 1 -6 0 -7 -1 -7 -2 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 2 -5 3 -4 2 -5 1 -5 1 -6 0 -7 0 -6 -1 -7 0 -6 0 -7 1 -6 1 -5 0 -5 1 -5 2 -5 3 -4 2 -5 1...
output:
0 -8 8 0 8 8 4 -4 6 -2 8 2 5 -3 3 -5 7 -1 8 1 8 4 2 -6 8 6 8 3 8 5 -2 -8 1 -7 6 8 8 7 4 8 7 8 5 8 0 8 2 8 -4 -8 -1 -8 -3 -8 -8 -8 -6 -8 -5 -8 -8 -6 -7 -8 -8 -4 -8 0 -8 -7 -8 -2 -8 -5 -6 2 -4 4 -2 6 -8 -3 -8 -1 3 8 -7 1 1 8 -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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 -6 2 -8 -4 -8 -1 -8 -3 -8 -6 -7 1 -4 4 0 8 -8 -5 -2 6 -6 -8 -5 3 -3 5 2 8 -8 -7 -4 -8 -1 7 -7 -8 -2 -8 4 8 -5 -8 8 0 8 8 2 -6 4 -4 -3 -8 6 -2 6 8 -1 -8 1 8 1 -7 3 8 8 2 8 4 8 6 5 8 7 8 8 5 3 -5 8 7 5 -3 8 3 7 -1 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 #77:
score: 0
Accepted
time: 3ms
memory: 3600kb
input:
0 0 -1 -1 -2 -2 -2 -3 -2 -4 -2 -5 -3 -6 -4 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 -2 -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 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 0 -7 -1 -7 -2 -7 -2 -6 -3 -6 -3 -7 -3...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -5 -8 -3 -8 2 -6 -1 -8 -8 -6 4 -4 -7 -8 -8 -4 1 -7 8 0 6 -2 3 -5 8 2 -8 -7 -8 -2 5 -3 -8 -5 -6 2 8 4 -4 4 -8 -3 8 8 8 6 7 -1 8 1 0 8 -2 6 8 3 -8 -1 -7 1 2 8 4 8 6 8 8 5 -5 3 8 7 5 8 -3 5 7 8 -1 7 1 8 3 8 -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 #78:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 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 2 -6 -8 -1 -4 4 -7 1 0 8 -3 -8 -2 6 -5 3 4 -4 2 8 8 0 4 8 -3 5 8 8 6 -2 6 8 -1 -8 -1 7 1 -7 1 8 3 -5 8 2 8 4 8 6 5 -3 7 -1 8 1 3 8 8 3 5 8 8 5 7 8 8 7 -7 -6 -7 -7 -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 #80:
score: 0
Accepted
time: 3ms
memory: 3672kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -5 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -5...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -5 -8 -2 -8 -8 -2 -8 -5 -3 -8 2 -6 -1 -8 4 -4 -6 2 1 -7 8 0 -8 -3 6 -2 -4 4 3 -5 -8 -1 8 8 8 2 8 4 8 6 5 -3 0 8 -2 6 7 -1 -7 1 8 1 -5 3 2 8 4 8 6 8 -3 5 -1 7 1 8 3 8 8 3 5 8 8 5 7 8 8 7 -7 -6 -7 -7 -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 #81:
score: 0
Accepted
time: 3ms
memory: 3672kb
input:
0 0 -1 0 -2 0 -3 0 -4 0 -5 0 -6 0 -7 -1 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 -2 -7 -1 -7 0 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8 8 8 8 4 7 -1 8 1 -2 6 8 6 8 3 2 8 4 8 6 8 8 5 -7 1 8 7 5 8 7 8 3 8 -5 3 1 8 -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 #83:
score: 0
Accepted
time: 3ms
memory: 3608kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -6 -5 -7...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -5 -8 -8 -2 -2 -8 -3 -8 -8 -5 -8 -3 -6 2 2 -6 -1 -8 -8 -1 4 -4 -4 4 1 -7 8 0 8 8 6 -2 -7 1 3 -5 0 8 -2 6 -5 3 2 8 8 2 4 8 8 4 6 8 8 6 -3 5 5 -3 -1 7 7 -1 1 8 8 1 3 8 8 3 5 8 8 5 7 8 8 7 -7 -7 -7 -6 -7 -4 -7 -5 -7 -3 -7 -2 -7 -1 -7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #84:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 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 7 8 7 5 8 1 8 3 8 7 8 -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 #86:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
0 0 1 0 2 0 2 -1 3 -1 3 -2 3 -3 4 -3 3 -4 2 -5 3 -4 2 -5 3 -4 2 -5 3 -4 4 -3 3 -4 4 -3 3 -4 2 -5 3 -4 4 -3 5 -2 6 -1 5 -2 6 -1 7 0 6 -1 7 0 6 -1 5 -2 6 -1 5 -2 4 -3 3 -4 2 -5 1 -6 0 -7 1 -6 0 -7 -1 -7 0 -7 1 -6 2 -5 3 -4 2 -5 3 -4 2 -5 1 -6 1 -5 0 -6 -1 -7 0 -7 1 -6 0 -6 -1 -7 -1 -6 -2 -7 -2 -6 -2 -...
output:
0 -8 8 0 8 8 4 -4 6 -2 2 -6 3 -5 5 -3 -2 -8 1 -7 8 2 -4 -8 7 -1 -1 -8 8 4 8 1 -3 -8 8 6 8 3 -8 -8 -6 -8 4 8 6 8 8 5 8 7 7 8 5 8 2 8 -8 0 0 8 -8 -6 -8 -4 -8 -2 -5 -8 -7 -8 -8 -7 -8 -5 -6 2 -4 4 -2 6 -8 -3 -8 -1 3 8 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 #87:
score: 0
Accepted
time: 3ms
memory: 3612kb
input:
0 0 0 1 0 2 0 3 0 4 0 5 0 6 -1 6 -2 5 -3 4 -4 3 -3 4 -2 5 -1 6 -2 5 -1 6 -2 5 -1 6 0 7 -1 6 0 7 1 7 0 7 -1 6 -2 5 -1 6 -2 5 -3 4 -2 5 -1 6 0 7 -1 6 0 7 -1 6 -2 5 -3 4 -4 3 -3 4 -2 5 -1 6 0 7 1 7 0 7 1 7 0 7 1 7 0 7 -1 6 0 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-7 0 -6 -7 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #89:
score: 0
Accepted
time: 3ms
memory: 3672kb
input:
0 0 0 -1 0 -2 0 -3 0 -4 0 -5 0 -6 -1 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 -2 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 2 -5 1 -6 2 -5 3 -4 4 -3 3 -4 4 -3 3 -4 4 -3 5 -2 4 -3 3 -4 4 -3 3 -4 4 -3 5 -2 6 -1 7 0 6 -1 5 -2 6 -1 7 0 6 -1 5 -2 6 -1 7 0 6 -1 5 -1 5 -2 4 -3 4 -2 4 -1 3 -2 2 -3 1 -4 1 -3 1 -...
output:
0 -8 -8 -8 8 0 -2 -8 2 -6 -4 -8 -1 -8 -3 -8 -6 -8 -5 -8 4 -4 -8 -6 -7 -8 1 -7 6 -2 3 -5 -8 -4 8 2 5 -3 7 -1 8 4 8 1 8 8 8 6 8 3 8 5 4 8 8 7 6 8 -8 0 5 8 7 8 0 8 -8 -2 2 8 -8 -7 -6 2 -4 4 -2 6 3 8 -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 #90:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -5 -6 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -7 -4 -6 -3 -7 -3 -6...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -7 -8 -8 -7 -4 -8 -5 -8 -2 -8 -8 -2 -3 -8 -8 -5 -8 -3 2 -6 -6 2 -1 -8 -8 -1 -4 4 4 -4 -7 1 0 8 8 0 -2 6 1 -7 8 8 6 -2 -5 3 3 -5 2 8 4 8 6 8 8 2 8 4 -3 5 8 6 -1 7 1 8 5 -3 3 8 7 -1 5 8 8 1 7 8 8 3 8 5 8 7 -7 -7 -7 -6 -7 -5 -7 -4 -7 -3 -7 -2 -7 -1 -6 -7 -7 0 -6 -6 -6 ...
result:
ok There is no valid neighbouring location.
Test #91:
score: 0
Accepted
time: 3ms
memory: 3736kb
input:
0 0 0 -1 -1 -2 -2 -3 -2 -4 -3 -5 -3 -6 -3 -7 -4 -7 -3 -7 -2 -7 -3 -7 -2 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -6 -7 -5 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -7 -3 -7 -4 -7 -3 -7 -2 -7 -1 -7 0 -7 -1 -7 0 -7 1 -6 0 -7 1 -6 2 -5 1 -6 0 -7 -1 -7 -2 -7 -3 -7 -4 -7 -3 -7 -2 -7 -3 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -6 -4 -7...
output:
0 -8 -8 -8 -8 0 -6 -8 -4 -8 -2 -8 -5 -8 -3 -8 -8 -6 2 -6 -1 -8 4 -4 1 -7 -7 -8 -8 -4 -8 -7 -8 -2 -8 -5 -6 2 -8 -3 8 0 -4 4 -8 -1 6 -2 3 -5 8 2 8 8 8 4 5 -3 7 -1 8 1 8 6 8 3 8 5 0 8 4 8 6 8 2 8 -2 6 -7 1 -5 3 -3 5 -1 7 8 7 1 8 3 8 5 8 7 8 -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 #92:
score: 0
Accepted
time: 3ms
memory: 3612kb
input:
0 0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -6 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -7 -6 -7 -7 -7 -6 -7 -5 -7 -6 -7 -5 -7 -6 -7 -7 -6 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -4 -7 -5 -7 -6 -7 -5 -7 -4 -7 -3 -7 -4 -7 -5 -7 -6 -7 -7 -7 -7 -6 -7 -7 -6 -7 -7 -7 -7 -6 -7 -5 -6 -4 -6...
output:
0 -8 -8 -8 -8 0 -8 -6 -6 -8 -8 -4 -8 -7 -7 -8 -4 -8 -5 -8 -8 -2 -2 -8 -3 -8 -8 -5 2 -6 -6 2 -8 -3 -8 -1 -1 -8 -4 4 4 -4 -7 1 0 8 8 0 -2 6 1 -7 8 8 6 -2 3 -5 8 2 8 4 5 -3 8 6 -5 3 2 8 4 8 6 8 7 -1 8 1 -3 5 8 3 -1 7 1 8 3 8 5 8 8 5 7 8 8 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.