結果

問題 No.1236 長針と短針
ユーザー 👑 tamatotamato
提出日時 2020-09-25 21:43:04
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 2,299 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 71,896 KB
最終ジャッジ日時 2023-09-10 15:06:35
合計ジャッジ時間 3,098 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,896 KB
testcase_01 AC 73 ms
71,308 KB
testcase_02 AC 71 ms
71,436 KB
testcase_03 AC 72 ms
71,764 KB
testcase_04 AC 73 ms
71,364 KB
testcase_05 AC 71 ms
71,580 KB
testcase_06 AC 72 ms
71,796 KB
testcase_07 AC 72 ms
71,700 KB
testcase_08 AC 73 ms
71,164 KB
testcase_09 AC 72 ms
71,636 KB
testcase_10 AC 71 ms
71,540 KB
testcase_11 AC 71 ms
71,628 KB
testcase_12 AC 72 ms
71,620 KB
testcase_13 AC 70 ms
71,164 KB
testcase_14 AC 72 ms
71,532 KB
testcase_15 AC 72 ms
71,580 KB
testcase_16 AC 72 ms
71,868 KB
testcase_17 AC 73 ms
71,320 KB
testcase_18 AC 73 ms
71,604 KB
testcase_19 AC 73 ms
71,656 KB
testcase_20 AC 72 ms
71,528 KB
testcase_21 AC 72 ms
71,624 KB
testcase_22 AC 73 ms
71,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from math import floor
    input = sys.stdin.readline

    a, b = map(int, input().split())
    A = (a * 30 + b * 0.5)%360
    B = (b * 6)%360
    if A == B:
        print(0)
    elif A > B:
        print(floor((A - B) / (5.5 / 60)))
    else:
        print(floor((360 + A - B) / (5.5 / 60)))


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