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 1070. Local Time

Wrong answer 6
Posted by DNS 23 Jul 2010 02:17
If you got Wrong answer    6 then
 if (answer>5) answer=5;
cout<<answer -- !!!

Most Important!!!

I have got AC when write it.

Example


01.01 21.59
04.23 11.22
Answer: 5

true 7 hours (21-7=7+7), but you must write 5!!!

good luck. :)
Re: Wrong answer 6
Posted by bsu.mmf.team 30 Aug 2010 01:33
I think you are not right. In this test the time difference between two airports is exaclty 5, and the flying lasts 2 hours. So, the first difference ~ -3 hours, and the second one ~ 7 hours.
Re: Wrong answer 6
Posted by Yuri.Pechatnov 30 Oct 2010 17:05
It's true))
There is a inconsistent problem situation. They should write date of flight.
Sorry for my english.