結果

問題 No.553 AlphaCoder Rating
ユーザー TksiTksi
提出日時 2017-08-11 23:34:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 1,500 ms
コード長 418 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,932 KB
実行使用メモリ 8,088 KB
最終ジャッジ日時 2023-08-02 23:54:11
合計ジャッジ時間 1,539 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,004 KB
testcase_01 AC 15 ms
7,940 KB
testcase_02 AC 16 ms
7,960 KB
testcase_03 AC 16 ms
8,072 KB
testcase_04 AC 16 ms
7,920 KB
testcase_05 AC 16 ms
7,924 KB
testcase_06 AC 17 ms
7,956 KB
testcase_07 AC 16 ms
8,088 KB
testcase_08 AC 16 ms
7,952 KB
testcase_09 AC 16 ms
7,880 KB
testcase_10 AC 16 ms
7,956 KB
testcase_11 AC 16 ms
8,064 KB
testcase_12 AC 17 ms
7,960 KB
testcase_13 AC 16 ms
7,996 KB
testcase_14 AC 16 ms
8,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
F = lambda n: math.sqrt(sum([0.81 ** i for i in range(1, n + 1)])) / sum([0.9 ** i for i in range(1, n + 1)])
f = (F(N) - 1 / math.sqrt(19)) / (F(1) - 1 / math.sqrt(19)) * 1200
g = lambda x: 2 ** (x / 800)
g_inv = 800 * math.log(1, 2)
Rating = int(800*math.log((sum([g(int(input())) * (0.9 ** i) for i in range(1, N + 1)]) / sum([0.9 ** i for i in range(1, N + 1)])),2) - f)
print(Rating)
0