結果
問題 | No.2352 Sharpened Knife in Fall |
ユーザー | mkawa2 |
提出日時 | 2023-06-16 21:55:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,049 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 86,904 KB |
実行使用メモリ | 82,256 KB |
最終ジャッジ日時 | 2023-09-06 19:36:11 |
合計ジャッジ時間 | 9,720 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,360 KB |
testcase_01 | AC | 70 ms
71,368 KB |
testcase_02 | AC | 68 ms
71,624 KB |
testcase_03 | AC | 67 ms
71,616 KB |
testcase_04 | AC | 263 ms
81,780 KB |
testcase_05 | AC | 66 ms
71,732 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 | 173 ms
80,260 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 100 ms
78,016 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
ソースコード
import sys # sys.setrecursionlimit(200005) # sys.set_int_max_str_digits(1000005) int1 = lambda x: int(x)-1 pDB = lambda *x: print(*x, end="\n", file=sys.stderr) p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr) def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def LI1(): return list(map(int1, sys.stdin.readline().split())) def LLI1(rows_number): return [LI1() for _ in range(rows_number)] def SI(): return sys.stdin.readline().rstrip() dij = [(0, 1), (-1, 0), (0, -1), (1, 0)] # dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)] inf = (1 << 63)-1 # md = 10**9+7 md = 998244353 from math import * R, k = LI() cake = R**2*pi piece = cake/(k+1) ans = [] for i in range(1, k+1): l, r = -pi/2, pi/2 for _ in range(30): m = (l+r)/2 if (pi/2-m-sin(m)*cos(m))*R*R < piece*i: r = m else: l = m ans.append(R*sin(l)) for a in ans[::-1]:print(f"{a:.7f}")