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 1193. Queue at the Exam

Help me WA# 7
Posted by Passarit 13 Apr 2006 15:49
My algorithm is
1. sort wait time min -> max
2. variable time declared to add total time
3. add minimal wait time and exam time to var(time)
4. add exam time everybody
5. if time > freetime print time-freetime
   else print 0
I think my algorithm is right ,but I got WA #7
Could you help me plz?
Re: Help me WA# 7
Posted by Passarit 12 May 2006 12:19
I see.
My algorithm has a little mistake.
Now I got AC.
Re: Help me WA# 7
you're wrong !
Let consider this test :
2
100 50 160
200 250 300
your answer : 100
correct answer : 150
Re: Help me WA# 7
Posted by alp 23 Sep 2009 10:56
Try test
2
50 10 50
150 20 200
Answer: 10
Re: Help me WA# 7
Posted by Mohan 25 Sep 2014 20:32
Phan Hoài Nam - Đại học Ngoại ngữ Tin Học TP.HCM -  Your test case is wrong. T2 cant be greater than 240

Edited by author 25.09.2014 20:32

Edited by author 25.09.2014 20:33