結果

問題 No.1236 長針と短針
ユーザー shotoyooshotoyoo
提出日時 2020-09-25 21:27:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 350 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,372 KB
最終ジャッジ日時 2023-09-10 14:53:09
合計ジャッジ時間 3,041 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,996 KB
testcase_01 AC 70 ms
71,364 KB
testcase_02 AC 72 ms
71,216 KB
testcase_03 AC 74 ms
71,300 KB
testcase_04 AC 72 ms
71,324 KB
testcase_05 AC 71 ms
70,752 KB
testcase_06 AC 70 ms
71,120 KB
testcase_07 AC 72 ms
71,260 KB
testcase_08 AC 71 ms
71,264 KB
testcase_09 AC 72 ms
71,120 KB
testcase_10 AC 72 ms
71,056 KB
testcase_11 AC 71 ms
71,128 KB
testcase_12 AC 70 ms
71,276 KB
testcase_13 AC 73 ms
71,296 KB
testcase_14 AC 70 ms
71,212 KB
testcase_15 AC 69 ms
71,372 KB
testcase_16 AC 71 ms
71,372 KB
testcase_17 AC 70 ms
71,128 KB
testcase_18 AC 72 ms
71,256 KB
testcase_19 AC 72 ms
71,144 KB
testcase_20 AC 74 ms
71,036 KB
testcase_21 AC 71 ms
71,204 KB
testcase_22 AC 69 ms
70,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


a,b = list(map(int, input().split()))
a %= 12
vals = [(i, 30*i/(360/3600 - 30/3600)) for i in range(11)]
vals.append((11,3600))
b *= 60
if vals[a][1]>b:
    ans = (vals[a][1]-b)//1
elif vals[a][1]==b:
    ans = 0
else:
    ans = (vals[a+1][1]-b+3600)//1
print(int(ans))
0