結果

問題 No.296 n度寝
ユーザー toshiro_yanagi
提出日時 2025-03-30 14:28:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 151 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-03-30 14:28:34
合計ジャッジ時間 1,467 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

def fun(h, m):
    m += (n - 1) * t
    h, m = (h + m // 60) % 24, m % 60
    print(h)
    print(m)


n, h, m, t = map(int, input().split())
fun(h, m)
0