結果

問題 No.553 AlphaCoder Rating
ユーザー rlangevinrlangevin
提出日時 2023-02-16 22:46:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 1,500 ms
コード長 458 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 76,568 KB
最終ジャッジ日時 2023-09-26 02:28:11
合計ジャッジ時間 2,872 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
76,388 KB
testcase_01 AC 76 ms
76,328 KB
testcase_02 AC 75 ms
76,520 KB
testcase_03 AC 75 ms
76,176 KB
testcase_04 AC 75 ms
76,304 KB
testcase_05 AC 75 ms
76,400 KB
testcase_06 AC 76 ms
76,300 KB
testcase_07 AC 73 ms
76,260 KB
testcase_08 AC 75 ms
76,252 KB
testcase_09 AC 75 ms
76,392 KB
testcase_10 AC 74 ms
76,232 KB
testcase_11 AC 75 ms
76,412 KB
testcase_12 AC 76 ms
76,568 KB
testcase_13 AC 74 ms
76,240 KB
testcase_14 AC 76 ms
76,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt, log2

def F(n):
    a, b = 0, 0
    for i in range(1, n + 1):
        a += pow(0.9, i)
        b += pow(0.81, i)
    return sqrt(b)/a

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

def g(X):
    return pow(2, X/800)

N = int(input())
R = [0] * N
for i in range(N):
    R[i] = int(input())
a, b = 0, 0
for i in range(1, N + 1):
    a += g(R[i-1]) * pow(0.9, i)
    b += pow(0.9, i)
    
print(int(800*log2(a/b) - f(N)))
0