結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-17 12:50:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 221 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-12 18:52:25 |
| 合計ジャッジ時間 | 1,216 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
n, h, m ,t = map(int, input().split())
m1 = (n-1) * t
m = m + m1
h1 = 0
if m > 60:
h1 = m//60
m = m - h1*60
h = h + h1
h2 = 0
if h > 24:
h2 = h//24
h = h - h2*24
if h == 24:
h = 0
print(h)
print(m)