結果

問題 No.553 AlphaCoder Rating
ユーザー qibqib
提出日時 2023-02-19 15:56:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 1,500 ms
コード長 393 bytes
コンパイル時間 868 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 71,992 KB
最終ジャッジ日時 2023-09-27 21:30:45
合計ジャッジ時間 3,198 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,972 KB
testcase_01 AC 65 ms
71,532 KB
testcase_02 AC 61 ms
71,992 KB
testcase_03 AC 62 ms
71,872 KB
testcase_04 AC 70 ms
71,808 KB
testcase_05 AC 66 ms
71,568 KB
testcase_06 AC 64 ms
71,760 KB
testcase_07 AC 64 ms
71,656 KB
testcase_08 AC 64 ms
71,908 KB
testcase_09 AC 65 ms
71,416 KB
testcase_10 AC 62 ms
71,752 KB
testcase_11 AC 62 ms
71,792 KB
testcase_12 AC 62 ms
71,920 KB
testcase_13 AC 60 ms
71,720 KB
testcase_14 AC 63 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

cf1 = 1.0
cfn = math.sqrt(1.0 - pow(0.81, n)) / ((1.0 - pow(0.9, n)) * math.sqrt(19))
cfinfty = 1 / math.sqrt(19)
fn = 1200 * (cfn - cfinfty) / (cf1 - cfinfty)

den = 9.0 * (1.0 - pow(0.9, n))
num = 0
ai = 1.0
for _ in range(n):
  rperf_i = int(input())
  ai *= 0.9
  num += pow(2.0, rperf_i / 800) * ai

ans = 800 * math.log(num / den, 2) - fn
print(round(ans))
0