Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
Домино
Statement
Solutions
Statistics
Discussion
Домино
Домино
Time limit
2
seconds
Memory limit
64
MiB
Input example #1
content_copy
7 2 6 5 6 2 5 2 2 6 8 2 2 0 2
Output example #1
content_copy
6
Почти максимум
Ones