結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-02 18:09:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 479 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-06-02 18:09:59 |
| 合計ジャッジ時間 | 1,901 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 elif ans_h > 24: while ans_h < 24: ans_h -= 24 print(ans_h) print(ans_m) sleep(n, h, m, t)