結果

問題 No.1236 長針と短針
ユーザー toshiro_yanagi
提出日時 2025-04-11 21:33:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-04-11 21:33:14
合計ジャッジ時間 1,482 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(s):
    print(s // 3600, s // 60 % 60, s % 60)


def f_h(s):
    return s % (3600 * 12)


def f_m(s):
    return s % 3600 * 12


def fun(h, m):
    flg = False
    s = h * 3600 + m * 60
    for i in range(3600 * 12):
        if f_h(s) - f_m(s) >= 0:
            flg = True
        if flg and f_h(s) - f_m(s) <= 3:
            print(i)
            break
        s += 1


a, b = map(int, input().split())
fun(a, b)
0