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 1134. Cards

test #5
Posted by Flybird 21 Feb 2010 04:02
i tryed all possible tests but i am still getting mistake on the fifth test. can somebody give me some tricky tests to help me?
Re: test #5
Posted by Roman Furko 20 Mar 2011 16:08
i have got this test too=(
Re: test #5
Posted by kamran_maharov 15 Jun 2011 16:44
in this problem,sorting and greedy approach works.after sorting given card outcomes,
we must iterate through these numbers and serve that card which has smallest possible number.using this,we make more chance to the next card to serve for the next outcome,
i.e outcomes are ordered.