結果
問題 | No.1236 長針と短針 |
ユーザー |
|
提出日時 | 2020-09-25 21:27:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 574 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-06-28 06:05:55 |
合計ジャッジ時間 | 2,174 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
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))