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

bobchennan This is a very easy O(n) DP.I only use 0.031s [1] // Problem 1031. Railway Tickets 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
Thanks a lot
That last line you wrote got me through :)