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
1222
. Chernobyl’ Eagles
My method
Posted by
wu hao
28 Jan 2009 03:58
F[i] = Max[F[i-j]*j} (0<i<=20)
1 (i=0)
F[i-3]*3 (i>20)
In this way,you can solve the problem in O(n^2).
Edited by author 28.01.2009 03:58
Re: My method
Posted by
☞ⓩⓢⓨⓩ™ⓣⓔⓢⓣ☜
29 Mar 2009 19:23
what is 'j'
© 2000–2024
Timus Online Judge Team
. All rights reserved.