Need help in an old IOI problem "IOI '94 the clocks"

Revision en2, by M.A.H.M.O.O.D, 2016-10-08 10:43:04

Good day everybody.

So yesterday I was trying to solve this problem here and now I need some help please.

So my problem is this in my soultion I got AC on the first test and RE on the rest I looked in the help section of the site and it turned out the RE might be caused by some large STL the only STL I was using was a queue so I put an if statment that if the queue size was bigger that 10000 stop putting stuff in the queue and it worked...sort of.

You see now I'm getting WA on tests 2 , 3 and 4 and AC on the rest and on tests 2 , 3 and 4 my program isn't outputing anything and that's because of the queue limit so now I'm asking you this can you tell me what is wrong with my code and how to fix it or do you have a working code for the problem or is there any site that has working C++ codes for old IOI problems.

Here's my code.

Any help is much appreciated.

thank you and sorry for the long post.

:)

Tags ioi, help, 1994

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English M.A.H.M.O.O.D 2016-10-08 10:43:04 1 Tiny change: ' program in't output' -> ' program isn't output'
en1 English M.A.H.M.O.O.D 2016-10-08 10:40:28 1052 Initial revision (published)