結果

問題 No.1236 長針と短針
ユーザー uni_pythonuni_python
提出日時 2020-09-25 21:25:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-10 14:52:21
合計ジャッジ時間 3,009 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,388 KB
testcase_01 AC 71 ms
71,280 KB
testcase_02 AC 73 ms
71,180 KB
testcase_03 AC 73 ms
71,324 KB
testcase_04 AC 72 ms
71,500 KB
testcase_05 AC 71 ms
71,488 KB
testcase_06 AC 71 ms
71,212 KB
testcase_07 AC 73 ms
71,280 KB
testcase_08 AC 73 ms
71,368 KB
testcase_09 AC 71 ms
71,376 KB
testcase_10 AC 73 ms
71,216 KB
testcase_11 AC 72 ms
71,312 KB
testcase_12 AC 73 ms
71,164 KB
testcase_13 AC 71 ms
71,180 KB
testcase_14 AC 74 ms
71,340 KB
testcase_15 AC 74 ms
71,340 KB
testcase_16 AC 71 ms
71,132 KB
testcase_17 AC 73 ms
71,404 KB
testcase_18 AC 72 ms
71,316 KB
testcase_19 AC 73 ms
71,380 KB
testcase_20 AC 75 ms
71,524 KB
testcase_21 AC 75 ms
71,260 KB
testcase_22 AC 74 ms
71,308 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%=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