結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2025-06-02 18:15:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-06-02 18:15:23 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 9 |
ソースコード
n, h, m, t= map(int, input().split()) def sleep(n, h, m, t): ans_h= h ans_m= m cal_n= n - 1 cal_h= (t * cal_n) // 60 cal_m= (t * cal_n) % 60 ans_h += cal_h ans_m += cal_m if ans_m >= 60: while ans_m < 60: ans_h += 1 ans_m -= 60 if ans_h > 24: while ans_h < 24: ans_h -= 24 print(ans_h) print(ans_m) sleep(n, h, m, t)