ENG  RUSTimus 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 1225. Flags

Why?
Posted by Delpher 22 Aug 2013 11:22
Why, if one of the strip, the answer is 2? "Red" and "Red"?
Re: Why?
Posted by Franco Cáceres Gutiérrez 12 Dec 2013 01:54
If n = 1, then the only strip may be Red or White, so answer is 2.
If n = 2, then you can either start with Red or White, but for each, you can only place White or Red respectively for the second strip, so answer is 2 again.