結果

問題 No.1236 長針と短針
ユーザー uni_pythonuni_python
提出日時 2020-09-25 21:23:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 1,760 ms
コンパイル使用メモリ 86,828 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-09-10 14:51:12
合計ジャッジ時間 3,104 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,300 KB
testcase_01 AC 70 ms
71,368 KB
testcase_02 AC 70 ms
70,996 KB
testcase_03 AC 74 ms
71,272 KB
testcase_04 WA -
testcase_05 AC 71 ms
71,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 69 ms
71,060 KB
testcase_09 AC 70 ms
71,388 KB
testcase_10 WA -
testcase_11 AC 70 ms
71,380 KB
testcase_12 WA -
testcase_13 AC 68 ms
71,396 KB
testcase_14 AC 71 ms
71,424 KB
testcase_15 AC 72 ms
71,192 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 72 ms
71,512 KB
testcase_19 AC 70 ms
71,012 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 70 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    A,B=MI()
    a=30*A+0.5*B
    b=6*B
    d=abs(a-b)
    
    if d==360:
        print(0)
        exit()
    t=(d*60)/5.5
    print(int(t))


main()
0