結果
| 問題 | No.352 カード並べ |
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2016-03-11 23:41:22 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 80,808 KB |
| 実行使用メモリ | 81,448 KB |
| 最終ジャッジ日時 | 2026-07-18 04:00:56 |
| 合計ジャッジ時間 | 1,833 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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