結果
問題 | No.2352 Sharpened Knife in Fall |
ユーザー | 👑 H20 |
提出日時 | 2023-06-16 22:11:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 446 bytes |
コンパイル時間 | 877 ms |
コンパイル使用メモリ | 87,508 KB |
実行使用メモリ | 85,448 KB |
最終ジャッジ日時 | 2023-09-06 20:09:38 |
合計ジャッジ時間 | 11,629 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 65 ms
71,696 KB |
testcase_02 | WA | - |
testcase_03 | AC | 63 ms
71,660 KB |
testcase_04 | WA | - |
testcase_05 | AC | 65 ms
71,884 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 | - |
ソースコード
import math def is_ok(h): theta = 2*math.acos(1-(h/R)) S = theta/2*R**2-(R-h)*(h*(2*R-h))**0.5 return S>=R**2*3.1415926535*(k+1)/(K+1) def meguru_bisect(ng, ok): while (abs(ok - ng) > 10**(-9)): mid = (ok + ng) / 2 if is_ok(mid): ok = mid else: ng = mid return ok R,K = map(int, input().split()) ANS = [] for k in range(K): ANS.append(meguru_bisect(0, 2*R)-R) print(*ANS)