結果

問題 No.1236 長針と短針
ユーザー uni_pythonuni_python
提出日時 2020-09-25 21:24:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 478 ms
コンパイル使用メモリ 86,604 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-10 14:51:44
合計ジャッジ時間 3,374 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,344 KB
testcase_01 AC 73 ms
71,164 KB
testcase_02 AC 74 ms
71,136 KB
testcase_03 AC 75 ms
71,052 KB
testcase_04 WA -
testcase_05 AC 76 ms
71,056 KB
testcase_06 AC 76 ms
71,160 KB
testcase_07 WA -
testcase_08 AC 76 ms
71,048 KB
testcase_09 AC 76 ms
71,140 KB
testcase_10 WA -
testcase_11 AC 75 ms
70,832 KB
testcase_12 WA -
testcase_13 AC 76 ms
70,744 KB
testcase_14 AC 77 ms
71,000 KB
testcase_15 AC 75 ms
71,216 KB
testcase_16 AC 74 ms
70,744 KB
testcase_17 WA -
testcase_18 AC 74 ms
71,356 KB
testcase_19 AC 74 ms
71,228 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 74 ms
71,008 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
    if a<b:
        a+=360
    d=a-b
    
    if d==360:
        print(0)
        exit()
    t=(d*60)/5.5
    print(int(t))


main()
0