HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginner > problem:


50231 - Hours Minutes and Seconds

Volume problems

• 50222 - Even or Odd
• 50223 - Average of Test Scores
• 50225 - Convert to Minutes and Sec...
• 50226 - Convert Celsius to Fahrenheit
• 50227 - Smallest Number
• 50228 - Even Numbers
• 50229 - Print All Numbers
• 50230 - ASCII Codes
• 50231 - Hours Minutes and Sec...
• 50236 - Put the Numbers in Descend...
• 50238 - Translate Score into Grade
• 50239 - Basic Math Calculator
• 50241 - Convert KPH to MPH
• 50242 - Second Largest
• 50262 - Function f(x)
• 50268 - Download Percentage
• 50269 - Isosceles Triangles

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Hours, Minutes and Seconds

Write a program to show number hours, minutes and seconds from entered seconds amount.
(1 hour = 3600 seconds)

Input: In the first line, you will get a positive integer as an indicator of seconds.

Output: The number of hours minutes and seconds with a space in between them.

Sample Input1:

Sample Input2:

100

4000

Sample  Output1:

Sample  Output2:

0 1 40

1 6 40

 

Для отправки решений необходимо выполнить вход.

www.contester.ru