結果
| 問題 |
No.567 コンプリート
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-03-11 17:55:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 147 bytes |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-10-13 05:51:17 |
| 合計ジャッジ時間 | 1,685 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 |
ソースコード
n = int(input())
ans = 1.0
sgn = -1
c = 6
for i in range(1,6)[::-1]:
ans += sgn*c*((i/6)**n)
sgn *= -1
c *= i
c //= 7-i
print(ans)
convexineq