QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#40501 | #2278. Tortoise | GuanYunchang | 18 | 106ms | 20112kb | C++20 | 2.3kb | 2022-07-22 12:58:49 | 2022-07-22 12:58:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Subtask #1:
score: 8
Accepted
Test #1:
score: 8
Accepted
time: 0ms
memory: 20008kb
input:
16 0 0 1 0 0 0 1 0 1 -1 1 1 1 0 -1 -1
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 0ms
memory: 19932kb
input:
16 1 1 0 1 0 0 1 0 1 -1 1 1 1 0 -1 -1
output:
3
result:
ok single line: '3'
Test #3:
score: 0
Accepted
time: 2ms
memory: 19976kb
input:
16 1 0 1 0 1 0 1 0 1 -1 1 1 1 0 -1 -1
output:
3
result:
ok single line: '3'
Test #4:
score: 0
Accepted
time: 0ms
memory: 18060kb
input:
16 1 1 0 1 1 0 1 0 1 -1 1 1 1 0 -1 -1
output:
4
result:
ok single line: '4'
Test #5:
score: 0
Accepted
time: 2ms
memory: 20016kb
input:
16 -1 0 -1 0 0 1 1 0 1 -1 1 1 1 0 -1 -1
output:
1
result:
ok single line: '1'
Test #6:
score: 0
Accepted
time: 2ms
memory: 20000kb
input:
16 0 1 1 0 0 1 1 0 1 -1 1 1 1 0 -1 -1
output:
3
result:
ok single line: '3'
Test #7:
score: 0
Accepted
time: 2ms
memory: 17884kb
input:
16 0 0 1 1 0 1 1 0 1 -1 1 1 1 0 -1 -1
output:
3
result:
ok single line: '3'
Test #8:
score: 0
Accepted
time: 0ms
memory: 19980kb
input:
16 0 0 0 0 1 1 1 0 1 -1 1 1 1 0 -1 -1
output:
2
result:
ok single line: '2'
Test #9:
score: 0
Accepted
time: 2ms
memory: 19988kb
input:
16 -1 0 0 1 1 1 1 0 1 -1 1 1 1 0 -1 -1
output:
3
result:
ok single line: '3'
Test #10:
score: 0
Accepted
time: 5ms
memory: 17976kb
input:
16 1 0 0 1 0 0 1 0 1 -1 1 1 1 0 0 -1
output:
2
result:
ok single line: '2'
Test #11:
score: 0
Accepted
time: 5ms
memory: 17892kb
input:
16 1 1 0 1 0 0 1 0 1 -1 1 1 1 0 0 -1
output:
3
result:
ok single line: '3'
Test #12:
score: 0
Accepted
time: 2ms
memory: 18052kb
input:
16 0 0 0 1 1 0 1 0 1 -1 1 1 1 0 0 -1
output:
2
result:
ok single line: '2'
Test #13:
score: 0
Accepted
time: 2ms
memory: 19924kb
input:
16 -1 0 -1 0 0 1 1 0 1 -1 1 1 1 0 0 -1
output:
1
result:
ok single line: '1'
Test #14:
score: 0
Accepted
time: 0ms
memory: 18056kb
input:
16 0 0 -1 0 0 1 1 0 1 -1 1 1 1 0 0 -1
output:
1
result:
ok single line: '1'
Test #15:
score: 0
Accepted
time: 2ms
memory: 19936kb
input:
16 1 0 1 0 0 1 1 0 1 -1 1 1 1 0 0 -1
output:
3
result:
ok single line: '3'
Test #16:
score: 0
Accepted
time: 2ms
memory: 19880kb
input:
16 -1 1 1 0 -1 0 -1 0 0 1 1 0 0 1 1 -1
output:
0
result:
ok single line: '0'
Test #17:
score: 0
Accepted
time: 0ms
memory: 17932kb
input:
16 0 0 -1 -1 -1 1 0 1 1 0 1 1 1 1 1 -1
output:
3
result:
ok single line: '3'
Test #18:
score: 0
Accepted
time: 2ms
memory: 18052kb
input:
16 0 0 0 0 1 0 0 0 0 0 0 1 0 1 1 -1
output:
0
result:
ok single line: '0'
Test #19:
score: 0
Accepted
time: 2ms
memory: 17944kb
input:
16 0 1 0 1 0 1 0 0 0 1 0 0 1 -1 0 -1
output:
2
result:
ok single line: '2'
Test #20:
score: 0
Accepted
time: 2ms
memory: 20064kb
input:
16 0 1 -1 1 1 0 1 0 1 0 0 1 1 -1 0 -1
output:
1
result:
ok single line: '1'
Test #21:
score: 0
Accepted
time: 0ms
memory: 17968kb
input:
16 0 0 1 -1 -1 0 1 1 -1 0 -1 0 -1 0 0 -1
output:
0
result:
ok single line: '0'
Test #22:
score: 0
Accepted
time: 2ms
memory: 19884kb
input:
16 -1 -1 -1 -1 -1 0 0 -1 1 1 0 1 0 -1 0 -1
output:
0
result:
ok single line: '0'
Test #23:
score: 0
Accepted
time: 2ms
memory: 20080kb
input:
16 0 -1 0 1 0 1 -1 1 -1 0 1 1 1 1 0 -1
output:
1
result:
ok single line: '1'
Test #24:
score: 0
Accepted
time: 1ms
memory: 19976kb
input:
16 1 -1 0 0 0 0 1 1 -1 0 0 1 0 -1 0 -1
output:
0
result:
ok single line: '0'
Test #25:
score: 0
Accepted
time: 0ms
memory: 18056kb
input:
16 1 0 0 0 1 0 1 1 0 0 -1 1 -1 -1 1 -1
output:
2
result:
ok single line: '2'
Test #26:
score: 0
Accepted
time: 2ms
memory: 17976kb
input:
16 1 1 0 0 0 1 0 0 0 0 1 0 0 -1 0 -1
output:
2
result:
ok single line: '2'
Subtask #2:
score: 10
Accepted
Test #27:
score: 10
Accepted
time: 0ms
memory: 17840kb
input:
249 -1 1 0 -1 1 1 0 0 1 0 1 0 0 0 1 0 0 1 -1 -1 0 0 0 0 0 1 0 1 0 0 1 1 1 0 1 0 0 1 0 1 0 1 0 1 0 1 -1 1 0 0 -1 1 0 0 0 -1 0 0 1 0 -1 0 1 1 0 1 1 -1 0 0 1 -1 -1 0 1 1 1 0 0 0 1 0 0 0 1 1 -1 0 1 0 1 0 0 -1 0 0 0 0 -1 -1 0 1 0 -1 -1 1 0 0 1 0 1 0 1 1 -1 1 0 1 1 -1 0 1 0 1 -1 0 0 1 0 0 0 0 1 1 0 0 1 1 ...
output:
15
result:
ok single line: '15'
Test #28:
score: 0
Accepted
time: 1ms
memory: 17960kb
input:
292 0 1 1 0 0 0 1 1 -1 1 0 1 1 1 0 1 1 1 1 0 0 1 1 0 1 0 0 0 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 0 0 1 1 -1 0 0 1 1 1 1 1 0 1 1 1 0 1 1 1 0 1 -1 1 0 1 1 1 1 1 0 1 1 1 -1 0 0 1 1 1 0 1 0 1 0 1 1 0 1 0 -1 1 1 1 0 1 0 0 0 1 1 1 0 1 0 1 1 -1 1 0 1 0 0 0 0 0 1 1 1 1 1 1 0 1 1 1 -1 1 1 1 0 -1 0 0 0 ...
output:
88
result:
ok single line: '88'
Test #29:
score: 0
Accepted
time: 2ms
memory: 19928kb
input:
278 0 1 -1 1 0 1 0 1 0 0 1 1 0 1 0 1 -1 -1 1 1 0 1 0 0 1 1 0 -1 0 0 0 1 -1 0 1 0 0 0 1 -1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 0 0 0 0 0 0 -1 -1 -1 1 1 1 0 0 0 -1 0 1 0 1 1 0 1 0 0 0 1 1 0 1 0 1 0 1 1 1 0 0 0 0 1 0 0 1 0 -1 0 1 1 0 -1 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 0 -1 1 1 0 0 0 1 0 1 1...
output:
38
result:
ok single line: '38'
Test #30:
score: 0
Accepted
time: 2ms
memory: 20024kb
input:
255 0 0 -1 -1 0 0 -1 1 1 0 0 0 -1 1 -1 0 0 0 0 1 0 1 1 -1 1 0 1 1 1 1 0 1 0 1 1 1 -1 1 1 0 0 1 0 0 1 1 -1 0 0 0 -1 -1 0 1 1 -1 0 1 -1 1 0 0 0 0 0 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 0 1 0 1 -1 1 1 0 1 1 1 0 -1 1 0 0 -1 1 0 0 -1 0 0 1 1 1 1 0 1 0 1 1 1 0 0 0 0 0 0 -1 -1 0 0 1 0 0 -1 0 1 1 0 0 -1 0 0 1 -1 1...
output:
17
result:
ok single line: '17'
Test #31:
score: 0
Accepted
time: 6ms
memory: 19876kb
input:
294 1 1 -1 0 -1 -1 0 1 0 -1 0 1 1 0 0 0 1 -1 -1 1 -1 0 0 -1 -1 0 1 0 -1 1 0 0 -1 0 0 -1 0 -1 1 -1 0 0 1 0 1 1 0 1 0 -1 1 0 1 0 -1 1 0 1 0 1 0 0 -1 0 0 1 1 0 0 0 0 0 1 0 1 0 -1 1 0 1 0 1 1 1 1 0 0 1 0 0 -1 1 0 0 1 -1 -1 1 1 0 0 -1 0 0 0 0 1 0 0 0 0 1 0 -1 0 0 0 0 0 1 0 1 1 1 1 0 0 -1 1 1 0 0 1 -1 1 1...
output:
4
result:
ok single line: '4'
Test #32:
score: 0
Accepted
time: 0ms
memory: 17956kb
input:
215 0 1 1 0 1 0 0 -1 1 0 0 0 -1 -1 1 0 0 1 -1 1 1 1 1 1 0 0 1 1 1 0 -1 0 1 0 0 0 0 1 0 1 0 0 -1 0 0 1 0 -1 1 1 1 -1 1 -1 0 0 1 0 0 -1 1 -1 0 1 1 0 -1 0 -1 -1 0 1 -1 -1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 -1 1 1 1 0 -1 1 1 0 0 0 0 0 -1 1 1 -1 1 0 -1 1 1 1 0 1 0 1 -1 0 1 0 -1 -1 0 0 -1 0 1 0 1...
output:
18
result:
ok single line: '18'
Test #33:
score: 0
Accepted
time: 2ms
memory: 20104kb
input:
274 0 0 0 0 1 1 0 -1 1 0 -1 0 0 0 0 0 0 -1 1 1 0 0 0 -1 1 0 0 0 0 1 0 0 0 0 1 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 0 0 0 1 1 0 0 1 -1 -1 0 1 0 1 0 0 1 1 1 1 0 1 0 1 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 1 0 0 0 1 0 1 0 0 0 -1 0 1 -1 -1 0 0 1 0 1 1 1 -1 0 1 1 -1 0 -1 0 0 0 1 0 0 1 0 1 1 1 0 -1 0 1 1 1 1 -1 1 -1 0...
output:
32
result:
ok single line: '32'
Test #34:
score: 0
Accepted
time: 2ms
memory: 20100kb
input:
255 -1 -1 1 1 0 0 1 1 1 1 0 1 1 0 0 0 1 0 1 0 1 -1 0 0 1 0 -1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 1 1 0 -1 0 1 -1 1 1 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 0 0 0 0 -1 0 0 1 1 1 1 1 1 0 0 1 1 1 -1 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 0 0 1 1 1 0 1 1 1 0 0 -1 -1 1 0 1 0 1 0 0 -1 1 0 1 0 1 0 1 0 1 1 0 0 0 0 1 1 0 1 0 -1 1 1 ...
output:
34
result:
ok single line: '34'
Test #35:
score: 0
Accepted
time: 2ms
memory: 17832kb
input:
300 -1 -1 0 0 0 -1 0 1 1 0 0 1 0 1 0 -1 1 0 -1 1 0 0 0 0 1 1 0 0 -1 0 0 1 0 0 -1 0 0 0 -1 -1 0 -1 1 1 1 -1 1 0 0 1 -1 1 -1 0 1 1 1 -1 1 1 0 -1 0 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 1 -1 0 0 -1 0 -1 0 -1 1 -1 1 0 -1 -1 1 0 0 0 0 1 -1 0 1 0 0 0 0 -1 1 1 1 1 -1 -1 0 0 1 -1 0 1 -1 1 1 1 1 0 1 1 0 -1 0 0 0 -...
output:
3
result:
ok single line: '3'
Test #36:
score: 0
Accepted
time: 5ms
memory: 20112kb
input:
300 0 0 0 1 0 -1 0 0 0 -1 0 -1 0 1 1 1 -1 1 1 0 0 1 0 1 0 1 1 0 0 -1 1 1 0 0 0 0 -1 0 1 0 0 -1 0 1 1 -1 0 0 0 1 1 1 0 -1 0 -1 1 0 0 -1 -1 -1 1 0 -1 1 0 1 -1 0 0 0 -1 0 1 0 0 1 -1 0 1 1 0 -1 0 1 1 0 1 -1 0 1 -1 1 1 1 0 0 0 0 0 0 0 0 1 -1 0 1 1 0 0 0 -1 0 -1 0 0 1 0 1 1 0 0 1 -1 -1 0 0 -1 1 0 0 -1 1 0...
output:
1
result:
ok single line: '1'
Test #37:
score: 0
Accepted
time: 2ms
memory: 19928kb
input:
300 0 1 -1 0 0 1 1 0 -1 0 1 -1 1 0 0 0 0 0 -1 0 1 1 1 1 1 0 1 -1 0 1 0 1 0 -1 -1 1 1 1 1 0 -1 0 0 1 0 1 1 0 -1 0 -1 0 -1 1 0 1 -1 1 1 0 0 1 -1 1 1 1 0 0 0 1 -1 0 -1 0 -1 0 -1 1 1 1 -1 1 0 -1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 -1 0 -1 1 0 -1 -1 0 0 1 -1 1 0 1 0 1 1 0 -1 0 0 -1 0 1 0 -1 1 0 0 0 0 0 0 0 1 -1 ...
output:
1
result:
ok single line: '1'
Test #38:
score: 0
Accepted
time: 0ms
memory: 17884kb
input:
300 1 1 0 1 1 0 1 0 1 0 0 0 1 0 -1 0 0 0 1 0 1 -1 0 -1 0 -1 1 1 -1 0 1 0 -1 -1 -1 1 0 1 1 1 1 1 0 1 1 -1 -1 -1 0 1 0 -1 0 1 -1 0 1 1 0 1 -1 -1 -1 -1 1 -1 0 -1 1 -1 1 0 1 1 -1 0 1 1 0 -1 0 0 1 1 0 1 -1 1 0 -1 0 -1 1 0 -1 0 0 0 0 1 0 -1 -1 1 1 -1 1 0 1 1 0 1 0 -1 0 0 0 0 1 1 -1 -1 1 1 0 0 0 0 0 0 1 0 ...
output:
7
result:
ok single line: '7'
Test #39:
score: 0
Accepted
time: 6ms
memory: 19980kb
input:
300 1 1 0 -1 0 0 1 0 0 0 -1 -1 0 0 -1 0 -1 0 0 0 0 0 -1 -1 1 0 1 0 1 1 0 0 0 1 -1 0 -1 0 0 0 1 0 0 -1 0 0 0 0 0 0 1 1 1 1 1 0 -1 0 1 1 -1 1 1 0 0 1 0 -1 -1 1 0 1 1 0 0 0 1 0 0 -1 -1 -1 1 1 1 0 -1 0 1 1 -1 1 0 1 -1 0 -1 0 0 -1 1 1 0 0 -1 1 0 1 0 1 1 0 1 0 -1 0 0 -1 1 0 0 1 1 0 -1 1 1 -1 1 0 1 0 1 0 0...
output:
8
result:
ok single line: '8'
Test #40:
score: 0
Accepted
time: 2ms
memory: 17884kb
input:
300 1 0 1 1 0 0 -1 1 0 1 1 -1 -1 1 1 0 1 0 1 0 0 0 0 1 0 0 1 -1 -1 1 0 0 0 0 -1 0 0 -1 -1 1 1 1 0 0 0 -1 0 1 0 0 0 1 0 0 0 1 1 -1 1 0 1 1 1 -1 -1 1 0 0 1 -1 1 0 0 0 0 1 0 1 0 0 -1 0 -1 -1 1 0 1 0 0 0 1 1 -1 0 1 1 0 1 -1 1 0 1 -1 1 1 0 0 1 -1 1 -1 -1 0 1 1 -1 -1 0 0 0 0 1 -1 0 0 0 -1 0 -1 1 1 0 0 1 0...
output:
3
result:
ok single line: '3'
Test #41:
score: 0
Accepted
time: 2ms
memory: 20024kb
input:
300 0 -1 0 1 0 1 1 -1 -1 1 0 0 -1 -1 1 0 0 0 0 0 0 0 0 0 1 -1 0 0 0 0 1 1 0 -1 0 1 1 0 1 0 1 1 1 1 1 0 -1 -1 1 -1 0 -1 0 -1 -1 1 1 0 -1 -1 1 0 1 -1 0 -1 1 -1 -1 0 0 1 1 -1 0 0 0 -1 0 -1 -1 1 1 -1 1 1 1 0 -1 1 0 0 -1 1 0 0 0 1 0 0 1 1 0 1 1 0 -1 -1 0 0 1 0 -1 0 -1 0 -1 1 0 -1 0 1 0 0 0 0 1 1 -1 -1 -1...
output:
2
result:
ok single line: '2'
Subtask #3:
score: 0
Wrong Answer
Test #42:
score: 30
Accepted
time: 4ms
memory: 20024kb
input:
203 0 1 -1 0 0 -1 -1 3 1 0 0 0 0 0 -1 0 0 2 0 0 0 0 0 0 0 -1 -1 0 0 -1 0 -1 2 0 2 0 0 0 0 0 3 0 0 -1 0 0 0 -1 -1 -1 1 0 0 0 0 0 0 0 0 0 0 0 0 -1 3 6 0 -1 0 0 2 -1 0 2 0 0 0 0 0 0 0 -1 -1 0 -1 0 -1 0 0 1 -1 -1 0 2 0 2 -1 0 0 0 6 -1 3 0 0 0 0 0 0 0 2 0 0 -1 -1 -1 1 0 0 -1 -1 0 -1 2 0 1 0 -1 0 0 0 -1 1...
output:
2
result:
ok single line: '2'
Test #43:
score: -30
Wrong Answer
time: 2ms
memory: 20108kb
input:
208 0 0 1 1 1 0 -1 -1 4 0 0 0 0 0 1 0 0 0 -1 -1 0 0 2 0 -1 0 4 0 1 0 0 0 0 0 0 -1 0 0 0 1 0 0 0 3 0 0 0 -1 0 0 0 0 4 0 0 1 -1 0 3 0 0 1 2 0 0 -1 1 -1 3 0 1 -1 1 0 -1 0 0 1 -1 0 0 0 -1 -1 -1 0 0 0 1 2 0 0 0 6 0 0 1 0 -1 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 3 0 0 0 0 0 0 2 0 -1 0 1 0 0 0 -1 0 5 0 0 -1 1 0 0...
output:
23
result:
wrong answer 1st lines differ - expected: '22', found: '23'
Subtask #4:
score: 0
Wrong Answer
Test #63:
score: 25
Accepted
time: 35ms
memory: 18152kb
input:
4937 0 1 -1 1 0 -1 1 0 1 0 1 0 0 0 0 0 0 0 1 1 -1 1 0 -1 1 1 0 0 0 1 0 0 1 -1 0 -1 0 1 -1 0 0 0 0 0 -1 0 1 0 1 0 0 0 0 1 0 1 1 1 1 -1 0 1 0 -1 0 1 -1 1 -1 0 0 1 1 1 0 -1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 1 -1 0 1 -1 -1 0 1 -1 -1 1 1 1 1 1 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 -1 0 0 1 0 1 1 1 -1 -1 0 0 ...
output:
22
result:
ok single line: '22'
Test #64:
score: -25
Wrong Answer
time: 106ms
memory: 19976kb
input:
4976 2 1 1 7 0 6 2 3 0 0 5 4 0 1 0 0 0 4 0 1 3 3 3 3 4 8 1 3 0 0 1 -1 0 0 15 0 4 7 4 3 4 5 0 6 2 1 1 1 0 0 3 3 0 10 0 4 -1 0 1 0 -1 -1 -1 0 0 4 0 0 6 -1 8 7 1 5 1 1 0 5 1 3 1 4 -1 1 4 1 0 0 5 1 7 1 0 4 -1 6 3 2 1 1 6 -1 5 -1 0 7 1 0 2 -1 0 4 3 1 2 4 1 -1 2 8 2 2 0 6 3 1 2 0 -1 2 1 2 1 5 0 4 -1 2 0 0...
output:
7248
result:
wrong answer 1st lines differ - expected: '7234', found: '7248'
Subtask #5:
score: 0
Time Limit Exceeded
Test #89:
score: 0
Time Limit Exceeded
input:
499952 -1 3 0 0 3 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 -1 0 0 0 0 0 0 0 3 0 0 0 0 -1 0 0 0 0 4 2 0 -1 0 0 0 0 0 0 1 0 1 0 -1 0 0 0 0 -1 2 0 0 0 0 0 1 0 -1 -1 0 0 0 3 0 0 0 0 0 0 0 -1 0 -1 0 0 0 -1 1 -1 -1 0 2 3 -1 0 -1 2 1 0 0 0 -1 -1 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 -1 0 -1 -1 0 ...