結果

問題 No.553 AlphaCoder Rating
ユーザー convexineqconvexineq
提出日時 2021-02-25 05:01:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,500 ms
コード長 342 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,668 KB
実行使用メモリ 53,820 KB
最終ジャッジ日時 2023-10-25 09:41:46
合計ジャッジ時間 1,884 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,820 KB
testcase_01 AC 38 ms
53,820 KB
testcase_02 AC 39 ms
53,820 KB
testcase_03 AC 39 ms
53,820 KB
testcase_04 AC 39 ms
53,820 KB
testcase_05 AC 39 ms
53,820 KB
testcase_06 AC 39 ms
53,820 KB
testcase_07 AC 38 ms
53,820 KB
testcase_08 AC 39 ms
53,820 KB
testcase_09 AC 39 ms
53,820 KB
testcase_10 AC 39 ms
53,820 KB
testcase_11 AC 39 ms
53,820 KB
testcase_12 AC 39 ms
53,820 KB
testcase_13 AC 39 ms
53,820 KB
testcase_14 AC 39 ms
53,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*a = map(int,open(0).read().split())

def h(r,n):
    return (r - r**(n+1))/(1-r)

def F(n):
    return (h(0.81,n)**0.5)/(h(0.9,n))

def f(n):
    return (F(n) - F(100000))/(F(1) - F(100000))*1200

from math import log
v = 0
for i in range(n):
    v += (2.0**(a[i]/800))*(0.9**(i+1))
v /= h(0.9,n)
ans = 800*log(v,2) - f(n)

print(int(ans))
0