結果

問題 No.2352 Sharpened Knife in Fall
ユーザー fiblonariafiblonaria
提出日時 2023-06-20 16:07:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 87,416 KB
実行使用メモリ 83,980 KB
最終ジャッジ日時 2023-09-10 11:44:42
合計ジャッジ時間 17,824 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math
R, K = map(int, input().split())
eps = 10 ** (-8)
for i in range(1, K + 1):
	m = [-R, R]
	while m[1] - m[0] > eps:
		t = sum(m) / 2
		m[R ** 2 * math.acos(t / R) - t * (R ** 2 - t ** 2) ** 0.5 - R ** 2 * math.pi / (K + 1) * i < 0] = t
	print('{:.6f}'.format(t)) 
0