結果

問題 No.296 n度寝
ユーザー R NR N
提出日時 2020-07-26 10:34:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-10 17:48:13
合計ジャッジ時間 2,970 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
7,808 KB
testcase_04 AC 16 ms
7,912 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 15 ms
7,892 KB
testcase_07 WA -
testcase_08 AC 238 ms
7,776 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,780 KB
testcase_11 AC 15 ms
7,892 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,856 KB
testcase_14 AC 15 ms
7,820 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8
N, H, M, T = map(int, input().split())

N_C = 0
H_C = H
M_C = M

while True:
    N_C += 1
    if N_C == N:
        break
    else:
        M_C += T
        if M_C >= 60:
            M_C -= 60
            H_C += 1
        else:
            if H_C >= 24:
                H_C -= 24
            else:
                continue
print(H_C)
print(M_C)
0