結果
| 問題 |
No.352 カード並べ
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2016-03-11 23:41:22 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 162 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 7,068 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 01:24:23 |
| 合計ジャッジ時間 | 773 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 6 |
ソースコード
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
Tawara