結果

問題 No.1236 長針と短針
ユーザー ygd.ygd.
提出日時 2020-09-25 21:37:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 709 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-10 15:01:15
合計ジャッジ時間 3,399 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,212 KB
testcase_01 AC 69 ms
71,464 KB
testcase_02 AC 71 ms
71,340 KB
testcase_03 AC 69 ms
71,564 KB
testcase_04 AC 69 ms
71,360 KB
testcase_05 AC 70 ms
71,136 KB
testcase_06 AC 70 ms
71,524 KB
testcase_07 AC 71 ms
71,388 KB
testcase_08 AC 71 ms
71,012 KB
testcase_09 AC 71 ms
71,140 KB
testcase_10 AC 69 ms
71,484 KB
testcase_11 AC 70 ms
71,312 KB
testcase_12 AC 70 ms
71,340 KB
testcase_13 AC 70 ms
71,240 KB
testcase_14 AC 70 ms
71,420 KB
testcase_15 AC 71 ms
71,344 KB
testcase_16 AC 72 ms
71,008 KB
testcase_17 AC 71 ms
71,440 KB
testcase_18 AC 71 ms
71,300 KB
testcase_19 AC 70 ms
71,360 KB
testcase_20 AC 71 ms
71,460 KB
testcase_21 AC 72 ms
71,360 KB
testcase_22 AC 71 ms
71,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
A %= 12
a = A*30+B*0.5
b = B*6
#print(a,b)
if a - b >= 0:
  d = a-b
else:
  d = 360+a-b
#print(d)
ans = d*60*2//11
print(int(ans))
0