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 1494. Monobilliards

Smilodon_am Fast algo - modelling works!!! [2] // Problem 1494. Monobilliards 1 Aug 2009 15:23
My AC program uses algorithm with process modelling. It's complexity is O(N) in memory and time.
Elisabeth Re: Fast algo - modelling works!!! [1] // Problem 1494. Monobilliards 1 Aug 2009 17:53
Yes, this is the best algo. I use this too.
If "process modelling" is for "linked list structure', then I can say the same.
The algorithm is so trivial, that the previous sentence is already a sufficient hint.

Edited by author 15.10.2011 16:40