結果

問題 No.296 n度寝
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-01-21 01:34:49
言語 Python2
(2.7.18)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 266 bytes
コンパイル時間 1,024 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 6,072 KB
最終ジャッジ日時 2023-09-21 08:20:45
合計ジャッジ時間 2,658 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
5,932 KB
testcase_01 AC 47 ms
5,844 KB
testcase_02 AC 24 ms
5,868 KB
testcase_03 AC 11 ms
5,928 KB
testcase_04 AC 11 ms
5,968 KB
testcase_05 AC 11 ms
6,008 KB
testcase_06 AC 11 ms
5,876 KB
testcase_07 AC 121 ms
5,868 KB
testcase_08 AC 120 ms
6,072 KB
testcase_09 AC 11 ms
5,848 KB
testcase_10 AC 11 ms
5,920 KB
testcase_11 AC 11 ms
5,864 KB
testcase_12 AC 11 ms
5,864 KB
testcase_13 AC 12 ms
5,876 KB
testcase_14 AC 11 ms
5,928 KB
testcase_15 AC 11 ms
5,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def min2clock(t):
    m = t % 60
    t /= 60
    h = t % 60
    return h, m

def clock2min(h, m):
    return h*60 + m

N, H, M, T = map(int, raw_input().split())
t = clock2min(H, M)
for i in xrange(N-1):
    t = (t + T) % (24 * 60)
for x in min2clock(t):
    print x
0