結果

問題 No.296 n度寝
ユーザー pea vavapea vava
提出日時 2020-09-06 10:58:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-08-19 13:40:13
合計ジャッジ時間 1,586 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
7,868 KB
testcase_04 AC 15 ms
7,796 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 14 ms
7,920 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
7,920 KB
testcase_11 AC 14 ms
7,880 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,928 KB
testcase_14 AC 15 ms
7,976 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

sum_T = (N - 1) * T #起きるまでのp時間

mtoh = M + sum_T

if mtoh >= 60:
    hour = mtoh // 60
    H = H + hour
    minute = mtoh % 60
    M =0
    M = minute
    print(H)
    print(M)
elif mtoh < 60:
    minute = M + mtoh
    print(H)
    print(mtoh)
0