結果

問題 No.553 AlphaCoder Rating
ユーザー lloyzlloyz
提出日時 2022-10-25 00:08:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 1,500 ms
コード長 323 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-16 01:28:01
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,932 KB
testcase_01 AC 17 ms
7,888 KB
testcase_02 AC 17 ms
7,932 KB
testcase_03 AC 15 ms
7,904 KB
testcase_04 AC 15 ms
8,004 KB
testcase_05 AC 16 ms
7,900 KB
testcase_06 AC 16 ms
7,896 KB
testcase_07 AC 16 ms
7,904 KB
testcase_08 AC 16 ms
7,896 KB
testcase_09 AC 16 ms
8,000 KB
testcase_10 AC 16 ms
7,908 KB
testcase_11 AC 16 ms
7,908 KB
testcase_12 AC 17 ms
7,904 KB
testcase_13 AC 17 ms
7,912 KB
testcase_14 AC 16 ms
7,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt, log2

n = int(input())
P = [int(input()) for _ in range(n)]

Fn = sqrt(19 * (1 - 0.81**n)) / (19 * (1 - 0.9**n))
F_ = sqrt(19) / 19
fn = 1200 * (Fn - F_) / (1 - F_)
res = 0.0
for i in range(n):
    res += 2**(P[i] / 800) * 0.9**(i + 1)
ans = 800 * log2(res / (9 * (1 - 0.9**n))) - fn
print(int(ans))
0