結果

問題 No.1236 長針と短針
ユーザー neterukunneterukun
提出日時 2020-09-25 21:38:02
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 768 ms
コンパイル使用メモリ 87,332 KB
実行使用メモリ 71,528 KB
最終ジャッジ日時 2023-09-10 15:01:50
合計ジャッジ時間 3,841 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,072 KB
testcase_01 AC 71 ms
71,184 KB
testcase_02 AC 71 ms
71,320 KB
testcase_03 AC 71 ms
71,332 KB
testcase_04 AC 71 ms
71,500 KB
testcase_05 AC 71 ms
71,140 KB
testcase_06 AC 71 ms
71,528 KB
testcase_07 AC 70 ms
71,524 KB
testcase_08 AC 70 ms
71,320 KB
testcase_09 AC 73 ms
71,324 KB
testcase_10 AC 70 ms
71,312 KB
testcase_11 AC 69 ms
71,408 KB
testcase_12 AC 69 ms
71,524 KB
testcase_13 AC 71 ms
71,184 KB
testcase_14 AC 70 ms
71,140 KB
testcase_15 AC 71 ms
71,268 KB
testcase_16 AC 71 ms
71,392 KB
testcase_17 AC 72 ms
71,328 KB
testcase_18 AC 69 ms
71,344 KB
testcase_19 AC 73 ms
71,176 KB
testcase_20 AC 71 ms
71,136 KB
testcase_21 AC 72 ms
71,332 KB
testcase_22 AC 72 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())

sec_short = 360 /12 / 60 / 60
sec_long = 360 / 60 / 60
diff_v= sec_long - sec_short


short_dig = 360 * (a % 12) / 12 + 30 * b / 60
long_dig = 360 * b / 60
#print(sec_short)
#print(sec_long)
#print(short_dig, long_dig)

diff = short_dig - long_dig
if diff < 0:
    diff += 360

print(int(diff / diff_v + 0.0001))
0