結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-17 12:50:11 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 126 ms / 1,000 ms |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 467 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-04-29 22:25:49 |
| 合計ジャッジ時間 | 3,729 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)