QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#142967#6718. Масив i частковi сумиalch07#31 23ms5164kbC++141.7kb2023-08-20 07:58:582024-07-04 01:49:37

详细

Subtask #1:

score: 14
Accepted

Test #1:

score: 14
Accepted
time: 18ms
memory: 4276kb

input:

200000 1
1 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 1 0 0 1 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 1 0 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 0 0 1 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 0 0 0...

output:

0

result:

ok OK: 0 operations

Test #2:

score: 0
Accepted
time: 21ms
memory: 4404kb

input:

200000 1
-1 0 0 0 -1 0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 0 -1 -1 0 0 0 -1 -1 0 -1 0 -1 0 -1 0 -1 -1 0 0 -1 -1 0 0 -1 -1 0 -1 -1 -1 -1 0 -1 -1 0 0 0 -1 0 -1 -1 -1 0 -1 -1 0 0 0 -1 -1 -1 -1 -1 0 0 -1 -1 0 -1 0 -1 0 -1 -1 -1 0 -1 -1 0 0 0 0 -1 -1 -1 0 0 -1 -1 -1 0 0 -1 -1 -1 0 0 -1 -1 -1 0 -...

output:

1
1

result:

ok OK: 1 operations

Test #3:

score: 0
Accepted
time: 22ms
memory: 5164kb

input:

200000 1
0 0 1 -1 1 1 -1 -1 0 1 -1 0 0 1 0 0 1 1 1 1 0 -1 -1 0 -1 -1 1 -1 1 1 1 1 -1 1 -1 1 1 0 -1 -1 0 1 0 0 0 0 1 1 -1 0 0 -1 -1 -1 0 0 0 1 1 1 -1 1 1 0 0 1 1 -1 1 0 0 1 1 1 1 -1 0 1 0 0 0 0 1 0 0 -1 0 -1 1 -1 0 1 -1 -1 0 0 0 -1 0 0 1 1 1 0 -1 0 1 1 1 0 1 0 0 0 -1 -1 0 -1 -1 1 -1 -1 1 1 0 1 1 1 -1...

output:

1
2 1 200000

result:

ok OK: 1 operations

Test #4:

score: 0
Accepted
time: 23ms
memory: 5096kb

input:

200000 1
-1 -1 -1 -1 0 1 0 -1 -1 0 -1 -1 1 0 0 -1 0 1 -1 0 -1 1 -1 0 1 1 0 1 1 1 0 0 1 -1 0 1 0 0 0 0 1 1 1 1 1 0 1 -1 1 1 0 -1 0 1 0 0 0 1 1 0 1 0 -1 -1 0 0 -1 -1 0 1 -1 -1 -1 0 1 0 0 -1 0 1 0 1 1 1 1 0 1 -1 -1 -1 0 0 0 -1 1 1 -1 -1 -1 1 0 0 -1 -1 0 -1 -1 -1 0 1 1 1 1 0 1 -1 -1 0 -1 0 0 0 -1 -1 -1 ...

output:

1
3 1 200000

result:

ok OK: 1 operations

Subtask #2:

score: 17
Accepted

Test #5:

score: 17
Accepted
time: 14ms
memory: 4392kb

input:

200000 2
1 1 0 0 1 0 1 0 1 1 0 1 1 1 1 0 0 0 1 1 0 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 0 1 1 1 0 0 1 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 1 0 0 1 1 0 1 1 0 1 1 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 0...

output:

99
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1...

result:

ok OK: 99 operations

Test #6:

score: 0
Accepted
time: 17ms
memory: 4316kb

input:

200000 2
0 0 -1 -1 0 -1 0 0 -1 -1 0 -1 -1 0 -1 0 -1 -1 -1 -1 -1 0 0 -1 0 -1 -1 0 0 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 0 -1 -1 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 0 0 -1 -1 0 0 -1 -1 -1 0 -1 -1 0 -1 -1 -1 -1 0 -1 -1 -1 0 0 -1 0 0 0 -1 -1 -1 0 0 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 0 0 0 -1 -1...

output:

100
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 3 7
2 ...

result:

ok OK: 100 operations

Test #7:

score: 0
Accepted
time: 17ms
memory: 4324kb

input:

200000 2
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1...

result:

ok OK: 99 operations

Test #9:

score: 0
Accepted
time: 15ms
memory: 4384kb

input:

200000 2
1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 -1 0 0 0 0 -1 0 -1 0 -1 0 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 -1 0 0 0 0 0 0 0 -1 -1 1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 -1 0 0 0 0 -1 0 0 0 1 0 0 -1 0 -1 0 0 0 0 0 -1 0 0 0 -1 -1 0 0 0 -1 0 -1 0 0 0 0 0 0 ...

output:

99
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1...

result:

ok OK: 99 operations

Test #10:

score: 0
Accepted
time: 14ms
memory: 4372kb

input:

200000 2
-1 0 1 -1 0 1 1 0 1 0 0 1 0 1 -1 1 1 -1 1 -1 -1 0 -1 -1 0 -1 0 0 0 1 1 0 -1 1 -1 0 1 0 1 -1 -1 -1 -1 1 -1 1 1 -1 1 1 -1 0 1 -1 0 -1 1 -1 0 -1 1 -1 0 1 1 1 0 -1 0 -1 -1 -1 -1 0 0 -1 1 -1 -1 0 1 -1 0 0 0 0 0 0 1 1 1 0 -1 0 -1 1 -1 1 -1 1 1 0 0 1 1 -1 1 1 -1 -1 1 0 -1 1 -1 0 0 0 -1 0 0 1 1 -1 ...

output:

100
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 1 5
2 ...

result:

ok OK: 100 operations

Subtask #3:

score: 0
Wrong Answer

Dependency #2:

100%
Accepted

Test #11:

score: 0
Wrong Answer
time: 19ms
memory: 4368kb

input:

200000 3
0 1 1 0 0 1 0 1 0 0 1 1 1 0 0 1 1 1 0 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 1 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 1 1 0 0 1 0 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 0 0 1 0...

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Wrong Answer

Test #28:

score: 0
Wrong Answer
time: 1ms
memory: 3556kb

input:

2891 5
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 ...

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #6:

score: 0
Skipped

Dependency #5:

0%

Subtask #7:

score: 0
Skipped

Dependency #5:

0%

Subtask #8:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

0%