結果

問題 No.296 n度寝
ユーザー souhei o
提出日時 2022-12-03 14:28:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-10 16:59:47
合計ジャッジ時間 1,325 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N,H,M,T = map(int, input().split())

import math

def weakup_time(N,H,M,T):
    loss_time = T*(N-1)
    H=60*H
    time = H+M+loss_time
    time = time-24*60*math.floor(time/(24*60))
    print(math.floor(time/60))
    print(time-60*math.floor(time/60))
    
weakup_time(N,H,M,T)
0