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 1031. Railway Tickets

This is a very easy O(n) DP.I only use 0.031s
Posted by bobchennan 22 Mar 2009 06:28
This is my program:
[code deleted]
Be careful of the s and t.In TEST#8,s>t.

Edited by moderator 23.10.2019 08:45
Re: This is a very easy O(n) DP.I only use 0.031s
Posted by lb04 29 Mar 2013 04:58
Thanks a lot
That last line you wrote got me through :)