結果
問題 | No.2352 Sharpened Knife in Fall |
ユーザー | flygon |
提出日時 | 2023-06-16 21:50:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 537 bytes |
コンパイル時間 | 860 ms |
コンパイル使用メモリ | 87,052 KB |
実行使用メモリ | 103,696 KB |
最終ジャッジ日時 | 2023-09-06 19:23:05 |
合計ジャッジ時間 | 25,478 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,804 KB |
testcase_01 | AC | 70 ms
71,840 KB |
testcase_02 | AC | 72 ms
71,620 KB |
testcase_03 | AC | 70 ms
71,720 KB |
testcase_04 | AC | 1,461 ms
95,960 KB |
testcase_05 | AC | 67 ms
71,504 KB |
testcase_06 | AC | 1,454 ms
95,564 KB |
testcase_07 | AC | 754 ms
89,828 KB |
testcase_08 | AC | 1,534 ms
95,784 KB |
testcase_09 | AC | 1,437 ms
99,256 KB |
testcase_10 | AC | 1,457 ms
96,092 KB |
testcase_11 | AC | 1,461 ms
95,884 KB |
testcase_12 | AC | 1,449 ms
95,780 KB |
testcase_13 | AC | 1,472 ms
95,940 KB |
testcase_14 | AC | 731 ms
89,548 KB |
testcase_15 | AC | 1,409 ms
103,696 KB |
testcase_16 | AC | 155 ms
78,224 KB |
testcase_17 | AC | 120 ms
78,208 KB |
testcase_18 | AC | 559 ms
85,768 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
ソースコード
from math import acos, degrees pi = 3.14159265358979 R,K = map(int,input().split()) S = pi*R*R ans = [R] for i in range((K+1)//2): now = (i+1)*S/(K+1) l = 0 r = ans[-1] for _ in range(200): y = (r+l)/2 xx = R*R - y*y th = degrees(acos((-xx+y*y)/(R*R))) s = S*th/360 - (xx**0.5)*y if s <= now: r = y else: l = y ans.append(l) new = set() for i in range(1, len(ans)): new.add(ans[i]) new.add(-ans[i]) print(*sorted(list(new)), sep = "\n")