Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
Spaced Out
Statement
Solutions
Statistics
Discussion
Spaced Out
Spaced Out
Time limit
1
second
Memory limit
128
MiB
Input example #1
content_copy
4 3 3 1 1 1 1 3 1 3 3 1 1 1 1 3 3
Output example #1
content_copy
22
Source 2021 USACO Январь, Серебро
No Time to Paint
Uddered but not Herd (Gold)