結果

問題 No.296 n度寝
コンテスト
ユーザー pypypymi
提出日時 2022-02-17 20:54:36
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 27 ms / 1,000 ms
コード長 329 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 211 ms
コンパイル使用メモリ 84,856 KB
実行使用メモリ 55,388 KB
最終ジャッジ日時 2026-03-18 18:45:20
合計ジャッジ時間 1,535 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import datetime as dt
n,h,m,t = map(int,input().split())
#n,h,m,t =786679,9,42,1001
late_time = (n-1)*t
t1 = dt.timedelta(hours=h,minutes=m)+dt.timedelta(minutes=late_time)
def days_hours_minutes(td):
    return td.days, td.seconds//3600, (td.seconds//60)%60
    
result = days_hours_minutes(t1)
print(result[1])
print(result[2])
0