結果

問題 No.296 n度寝
ユーザー fgshunfgshun
提出日時 2020-09-26 23:48:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 297 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 8,232 KB
最終ジャッジ日時 2023-09-12 12:52:42
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,084 KB
testcase_01 AC 15 ms
8,100 KB
testcase_02 AC 15 ms
8,108 KB
testcase_03 AC 15 ms
8,212 KB
testcase_04 AC 15 ms
8,232 KB
testcase_05 AC 15 ms
8,156 KB
testcase_06 AC 16 ms
8,132 KB
testcase_07 AC 15 ms
8,104 KB
testcase_08 AC 15 ms
8,144 KB
testcase_09 AC 15 ms
8,132 KB
testcase_10 AC 16 ms
8,152 KB
testcase_11 AC 15 ms
8,228 KB
testcase_12 AC 19 ms
8,096 KB
testcase_13 AC 15 ms
8,204 KB
testcase_14 AC 15 ms
8,200 KB
testcase_15 AC 16 ms
8,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import itertools

def resolve(in_):
    N, H, M, T = map(int, next(in_).split())

    m = (N - 1) * T + M
    _h, m = divmod(m, 60)
    h = (H + _h) % 24

    return '{}\n{}'.format(h, m)


def main():
    ans = resolve(sys.stdin)
    print(ans)


if __name__ == '__main__':
    main()
0