ÀÂÒ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

413. Clock

Time Limit: 1 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added Undefined

Clock's hands move with constant angular speeds and show h hours and m minutes.
Write the program to find number of full minutes till the nearest moment in which hands will coincide.

Input

Two numbers h (0<=h<=11) and m (0<=m<=59), separeated by space.

Output

Number of full minutes.

Samples

InputOutput
0 00
1 14

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / VoSU Selection Rounds / Selection Round on ACM ICPC 2007 /
413. 411. Equal Sums 414. Shortest Expression 412. Texture
time generating 0.109 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.