結果

問題 No.2352 Sharpened Knife in Fall
ユーザー ニックネームニックネーム
提出日時 2023-06-16 22:51:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,804 KB
実行使用メモリ 10,896 KB
最終ジャッジ日時 2023-09-06 21:28:30
合計ジャッジ時間 20,813 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,864 KB
testcase_01 AC 16 ms
7,988 KB
testcase_02 AC 16 ms
7,900 KB
testcase_03 AC 16 ms
7,952 KB
testcase_04 AC 1,225 ms
10,876 KB
testcase_05 AC 16 ms
7,832 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 AC 572 ms
9,520 KB
testcase_15 WA -
testcase_16 AC 74 ms
8,032 KB
testcase_17 AC 43 ms
7,868 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import cos,sin,pi
r,k = map(int,input().split())
a = []
for i in range(k//2):
    ok = 0; ng = pi/2
    for _ in range(30):
        mid = (ok+ng)/2
        s = (pi-2*mid)/2-cos(mid)*sin(mid)
        if s>pi*(i+1)/(k+1): ok = mid
        else: ng = mid
    a.append(sin(ok))
for v in a: print(-v*r)
if k%2: print(0)
for v in a[::-1]: print(v*r)
0