long long int t,hhmm,hh,mm,hj;
long long int s,c;
if(hh<10 || mm<10)
this is my code for problem http://www.codechef.com/QUCO2014/problems/QUCOBIC
what is wrong can someone help ?
Some edge cases you would want to consider are as follows:
Tell me whether you get the above outputs with your code .
OK I GOT IT I CONSIDERED 2359 AS THE HIGHEST SO I ASSUMED THAT 2359 IS MAXIMUM NOT 0000. ONLY OUTPUT OF 2358 120 IS INCORRECT REST ALL ARE CORRECT. MY FAULT. ALSO THEN
WHAT WILL BE OUTPUT OF THIS ?
0001 OR 0000 ?
It was an easy but tricky question. Took me several attempts to figure out the edge case. At First glance it seemed to require a simple greedy algorithm.Hence , The accuracy was pretty low , around 6%.
Can you tell me output of this one
Question says maximal time which means maximum value of time displayed on the clock after S seconds.
should have 2359 as maximum time and not 0000.
Am I missing something ?
i have the same problem hehe if you get the answer please tell me too