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 1789. Searching for the Dodecahedron

Why this solution is wrong?
Posted by ucs6 16 Sep 2011 05:50
1) print (n-2)*2
2) print from 2 to n-1
3) if n is odd, print from 2 to n-1 again
   otherwise, print from n-1 downto 2