結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2018-03-09 21:43:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-10 03:31:07 |
合計ジャッジ時間 | 1,356 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import datetime N, H, M, T = map(int, input().split()) time = T*(N-1) first_wu = datetime.datetime(year=1, month=1, day=1 ,hour=H, minute=M, second=1) wu_hour = time // 60 wu_min = time - (wu_hour*60) wu_time = datetime.timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=wu_min, hours=wu_hour, weeks=0) wu = first_wu + wu_time print(wu.hour) print(wu.minute)