CT002

Mira's Midnight Calendar

EasyL1 · Pixel PusherAcceptance: 0.0%XP: 5

Mira's sleepy owl courier must turn minutes into days, hours, and leftovers. Task: Convert M minutes into days, hours, and minutes. Input format: One integer M. Output format: Print D H R, where M=1440D+60H+R. Constraints: 0 <= M <= 10^9

Example 1:

Input: 0
Output: 0 0 0

Example 2:

Input: 59
Output: 0 0 59

Example 3:

Input: 60
Output: 0 1 0

Constraints:

0 <= M <= 10^9

Tags:

arithmetic time
Loading...
Test Cases:No test cases
No test cases available.