結果

問題 No.2123 Chalk Breaker
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-04-22 22:25:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 59,392 KB
最終ジャッジ日時 2024-04-25 00:23:15
合計ジャッジ時間 1,779 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 41 ms
52,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
rr=[0.0]*(n+3)
rr[1]=1.0
rr[2]=5/2.0
for i in range(3,n+1,1):
	for x in range(i):
		rr[i]+=(rr[x]+rr[i-x-1])/i
print("%.11f" % (rr[n]))
0