結果

問題 No.2352 Sharpened Knife in Fall
ユーザー fiblonariafiblonaria
提出日時 2023-06-20 16:12:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,221 ms / 3,000 ms
コード長 274 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 87,548 KB
実行使用メモリ 83,632 KB
最終ジャッジ日時 2023-09-10 11:50:38
合計ジャッジ時間 21,954 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,696 KB
testcase_01 AC 73 ms
71,748 KB
testcase_02 AC 75 ms
71,760 KB
testcase_03 AC 74 ms
71,636 KB
testcase_04 AC 852 ms
83,476 KB
testcase_05 AC 76 ms
71,868 KB
testcase_06 AC 1,221 ms
83,432 KB
testcase_07 AC 683 ms
80,812 KB
testcase_08 AC 1,216 ms
83,632 KB
testcase_09 AC 1,209 ms
83,600 KB
testcase_10 AC 1,221 ms
83,536 KB
testcase_11 AC 1,167 ms
83,460 KB
testcase_12 AC 1,220 ms
83,500 KB
testcase_13 AC 1,163 ms
83,372 KB
testcase_14 AC 593 ms
80,588 KB
testcase_15 AC 1,069 ms
83,368 KB
testcase_16 AC 191 ms
78,892 KB
testcase_17 AC 161 ms
78,336 KB
testcase_18 AC 510 ms
80,152 KB
testcase_19 AC 995 ms
82,536 KB
testcase_20 AC 457 ms
80,180 KB
testcase_21 AC 466 ms
79,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
R, K = map(int, input().split())
eps = 10 ** (-8)
for i in range(K, 0, -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