結果

問題 No.2123 Chalk Breaker
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-04-22 22:34:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 59,904 KB
最終ジャッジ日時 2024-04-25 00:28:35
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
59,264 KB
testcase_01 AC 102 ms
59,392 KB
testcase_02 AC 60 ms
59,264 KB
testcase_03 AC 47 ms
59,008 KB
testcase_04 AC 45 ms
58,496 KB
testcase_05 AC 93 ms
59,264 KB
testcase_06 AC 47 ms
59,008 KB
testcase_07 AC 51 ms
59,264 KB
testcase_08 AC 46 ms
59,904 KB
testcase_09 AC 35 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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