結果

問題 No.567 コンプリート
ユーザー maspy
提出日時 2020-02-03 21:25:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-19 06:24:31
合計ジャッジ時間 1,388 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

from math import log, exp

N = int(read())

coef = [1, -6, 15, -20, 15, -6]
answer = sum(((6-i)/6) ** N * c for i,c in enumerate(coef))

print(answer)
0