結果

問題 No.1236 長針と短針
ユーザー kohei2019kohei2019
提出日時 2020-12-19 15:13:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 11,804 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2023-10-21 09:15:38
合計ジャッジ時間 1,831 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,144 KB
testcase_01 AC 29 ms
10,144 KB
testcase_02 AC 28 ms
10,144 KB
testcase_03 AC 29 ms
10,144 KB
testcase_04 AC 28 ms
10,144 KB
testcase_05 AC 29 ms
10,144 KB
testcase_06 AC 29 ms
10,144 KB
testcase_07 AC 28 ms
10,144 KB
testcase_08 AC 29 ms
10,144 KB
testcase_09 AC 29 ms
10,144 KB
testcase_10 AC 29 ms
10,144 KB
testcase_11 AC 29 ms
10,144 KB
testcase_12 AC 29 ms
10,144 KB
testcase_13 AC 29 ms
10,144 KB
testcase_14 AC 28 ms
10,144 KB
testcase_15 AC 29 ms
10,144 KB
testcase_16 AC 29 ms
10,144 KB
testcase_17 AC 29 ms
10,144 KB
testcase_18 AC 29 ms
10,144 KB
testcase_19 AC 29 ms
10,144 KB
testcase_20 AC 29 ms
10,144 KB
testcase_21 AC 29 ms
10,144 KB
testcase_22 AC 29 ms
10,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
def clock(A,B,C):#A時B分C秒の時のradA,radB,radC
    radC = C*6
    radB = B*6+(radC/360)*6
    radA = (A%12)*30+(radB/360)*30
    return radA,radB,radC

radA,radB,radC = clock(A,B,0)
if radA < radB:
    d = radA+360-radB
else:
    d = radA-radB
ans = (d*120)/11
#d/(1/10-1/120)
print(int(ans))
0