結果

問題 No.352 カード並べ
ユーザー TawaraTawara
提出日時 2016-03-11 23:41:22
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 7,020 KB
実行使用メモリ 6,444 KB
最終ジャッジ日時 2023-10-25 06:00:06
合計ジャッジ時間 777 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from itertools import combinations as comb
N = int(raw_input())
ans = 1.
for i in xrange(2,N+1):
	ans += (2.+ sum(x*y for x,y in comb(xrange(1,i),2)))/i
print ans
0