시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 110 | 63 | 52 | 54.737% |
All your games track your time played in minutes. You have decided to create a program that will convert the minutes into years, days, hours and minutes.
The first line will contain the number of inputs that follow. Each input will consist of a game title and the number of minutes played, in the following format:
gameTitle,minutesPlayed
For each input display the game title followed by how long it has been played in years, days, hours and minutes. Each unit of time is only printed if it has a value is greater than 0. All the text on the same line is separated by a single space.
Result Format:
GameTitle - # year(s) # day(s) # hour(s) # minute(s)
5 2048,800 Halo,1097578 Heroes of the Storm,6736732 Infinity Blade,78 Xcom,43
2048 - 13 hour(s) 20 minute(s) Halo - 2 year(s) 32 day(s) 4 hour(s) 58 minute(s) Heroes of the Storm - 12 year(s) 298 day(s) 6 hour(s) 52 minute(s) Infinity Blade - 1 hour(s) 18 minute(s) Xcom - 43 minute(s)