結果

問題 No.1236 長針と短針
ユーザー noriocnorioc
提出日時 2022-05-21 20:13:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 11,840 KB
実行使用メモリ 10,168 KB
最終ジャッジ日時 2023-10-20 16:36:43
合計ジャッジ時間 1,498 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

A, B = map(int, input().split())
A = A % 12

# 短針
va = 1 * (1 / 120)
# 長針
vb = 1 * (1 / 10)

pa = 30 * A + B / 2
pb = 6 * B

if pa >= pb:
    d = pa - pb
else:
    d = 360 - abs(pb - pa)

v = vb - va
ans = 1 * (d / v)
#print(f'{d=} {v=}')
print(int(ans))
0