結果

問題 No.1236 長針と短針
ユーザー toshiro_yanagi
提出日時 2025-04-11 22:00:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 350 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-04-11 22:00:54
合計ジャッジ時間 2,282 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

def fun(h, m):
    flg = False
    s = h * 3600 + m * 60
    for i in range(2 * 3600):
        s %= 12 * 3600
        if s in set(i * 12 * 3600 // 11 for i in range(11)):
            return i
        s += 1


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