ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1172
. Ship Routes
Hint
Posted by
yyll
13 May 2021 12:53
let there be 2k odd gaps and n-2k even gaps between island A
even gaps could be BCBCBC or CBCBCB
odd gaps are half BCB half CBC
© 2000–2024
Timus Online Judge Team
. All rights reserved.