結果

問題 No.1236 長針と短針
ユーザー tikitaka1201tikitaka1201
提出日時 2020-09-26 18:40:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 833 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 77,060 KB
最終ジャッジ日時 2023-09-12 00:00:00
合計ジャッジ時間 3,793 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,600 KB
testcase_01 WA -
testcase_02 AC 73 ms
71,484 KB
testcase_03 AC 78 ms
76,400 KB
testcase_04 WA -
testcase_05 AC 73 ms
71,484 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 73 ms
71,576 KB
testcase_10 WA -
testcase_11 AC 77 ms
76,304 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 73 ms
71,260 KB
testcase_15 AC 73 ms
71,496 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 74 ms
71,796 KB
testcase_19 AC 77 ms
76,448 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 76 ms
76,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
def MI():
    return map(int, input().split())
import math
a,b=MI()
if a==12: a=0
for sec in range(1, 3600*12):
    angle_a=(a+b/60+sec/3600)/12
    angle_b=(b+sec/60)/60
    if angle_a>=1*math.pi:angle_a-=1
    if angle_b>=1*math.pi:angle_b-=1
    #print(angle_b-angle_a)
    if 0<angle_b-angle_a<5*10**(-4):
        print(sec-1)
        break
0