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 1244. Gentlemen

id there anybody know how to solve 1244 without array[1..100000] ???
Posted by Locomotive 3 Mar 2003 10:18
Re: id there anybody know how to solve 1244 without array[1..100000] ???
Posted by Vedernikoff Sergey 3 Aug 2005 15:30
This task can be solved with usage of array [1 .. 50000] (in cases when "empty mass" more than 50000 you can solve the problem for cards in the deck and then "reverse" an answer. More hemorroy, but less memory...