結果
問題 | No.553 AlphaCoder Rating |
ユーザー |
|
提出日時 | 2022-02-08 21:46:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,500 ms |
コード長 | 431 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 54,576 KB |
最終ジャッジ日時 | 2024-06-23 17:35:55 |
合計ジャッジ時間 | 1,767 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
import mathN = 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)))*1200def g(x):return 2**(x/800)def invg(x):return 800*math.log2(x)v1 = 0v2 = 0for c in range(N):i = c+1v1 += g(lsp[c])*0.9**iv2 += 0.9**ians = invg(v1/v2)-f(N)print(int('{:.0f}'.format(ans)))