And you think I don't? Because I am going to ONI (and you don't) I also get to study Graphs :|...Quote:
Study dynamic programming :D If you won`t be in the top 10 I will find you.
I think I lost points by using a double for instead of one for in the second problem...that's why I lost so many points :| (there was a very simple math formula v[i] = max(c[i], c[i] + v[i - 1]) (Immune helped me a bit with this one)).
Anyway back on track. The vps has been fixed.