結果

問題 No.296 n度寝
コンテスト
ユーザー eiji1000
提出日時 2019-03-06 12:50:19
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 315 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 351 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 15,492 KB
最終ジャッジ日時 2026-03-08 10:23:27
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import datetime

yuki_list = list(map(int, input().split()))
n = yuki_list[0]
H = yuki_list[1]
M = yuki_list[2]
t = yuki_list[3]

dt_f = datetime.timedelta(hours=H,minutes=M)
sleep_time = (n-1) * t
dt_s = datetime.timedelta(minutes=sleep_time)
x = dt_f + dt_s
a = str(x)
aa = a.split(':')


print(aa[0],'\n',aa[1])
0