結果

問題 No.296 n度寝
ユーザー alcoholampalcoholamp
提出日時 2019-10-18 15:30:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 355 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 9,960 KB
最終ジャッジ日時 2023-09-07 20:42:45
合計ジャッジ時間 1,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
9,808 KB
testcase_01 AC 32 ms
9,800 KB
testcase_02 AC 32 ms
9,868 KB
testcase_03 AC 31 ms
9,808 KB
testcase_04 AC 31 ms
9,912 KB
testcase_05 AC 32 ms
9,804 KB
testcase_06 AC 32 ms
9,796 KB
testcase_07 AC 32 ms
9,808 KB
testcase_08 AC 32 ms
9,804 KB
testcase_09 AC 32 ms
9,776 KB
testcase_10 AC 31 ms
9,804 KB
testcase_11 AC 31 ms
9,928 KB
testcase_12 AC 31 ms
9,936 KB
testcase_13 AC 32 ms
9,960 KB
testcase_14 AC 30 ms
9,916 KB
testcase_15 AC 30 ms
9,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import datetime, date, timedelta

class Problem0525:
    def solve(this):
        n,h,m,t = map(int, input().split())

        d = datetime.strptime('%d:%d' % (h,m), '%H:%M')
        l = d + timedelta(minutes=(n-1) * t)
        print(l.hour)
        print(l.minute)
if __name__ == "__main__":
    problem = Problem0525()
    problem.solve()
0