結果

問題 No.1236 長針と短針
ユーザー uni_python
提出日時 2020-09-25 21:25:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-06-28 06:05:11
合計ジャッジ時間 1,987 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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%=12
    a=30*A+0.5*B
    b=6*B
    if a<b:
        a+=360
    d=a-b
    
    if d==360:
        print(0)
        exit()
    t=(d*60)/5.5
    print(int(t))


main()
0