結果

問題 No.553 AlphaCoder Rating
ユーザー kohei2019kohei2019
提出日時 2022-02-08 21:46:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,500 ms
コード長 431 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 87,412 KB
実行使用メモリ 72,192 KB
最終ジャッジ日時 2023-09-05 22:15:06
合計ジャッジ時間 2,989 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,820 KB
testcase_01 AC 68 ms
71,928 KB
testcase_02 AC 68 ms
71,860 KB
testcase_03 AC 68 ms
71,932 KB
testcase_04 AC 69 ms
71,800 KB
testcase_05 AC 68 ms
71,984 KB
testcase_06 AC 69 ms
71,996 KB
testcase_07 AC 70 ms
71,864 KB
testcase_08 AC 73 ms
72,000 KB
testcase_09 AC 70 ms
71,672 KB
testcase_10 AC 69 ms
71,720 KB
testcase_11 AC 69 ms
71,996 KB
testcase_12 AC 69 ms
71,888 KB
testcase_13 AC 70 ms
72,140 KB
testcase_14 AC 69 ms
72,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
lsp = [int(input()) for i in range(N)]

def F(k):
    return ((1-0.81**k)/(1-0.81))**(1/2)/((1-0.9**k)/(1-0.9))

def f(k):
    return (F(k)-(1/19**(1/2)))/(F(1)-(1/19**(1/2)))*1200

def g(x):
    return 2**(x/800)

def invg(x):
    return 800*math.log2(x)

v1 = 0
v2 = 0
for c in range(N):
    i = c+1
    v1 += g(lsp[c])*0.9**i
    v2 += 0.9**i

ans = invg(v1/v2)-f(N)
print(int('{:.0f}'.format(ans)))
0