結果
問題 | No.553 AlphaCoder Rating |
ユーザー |
👑 |
提出日時 | 2019-06-06 23:18:27 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 360 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 21:29:02 |
合計ジャッジ時間 | 1,345 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
local msq, mlg, mfl = math.sqrt, math.log, math.floorlocal n = io.read("*n")local fn = (msq((1 + 0.9^n) / (1 - 0.9^n)) - 1) / (msq(19) - 1) * 1200local denom = 9 * (1 - 0.9^n)local numer = 0for i = 1, n dolocal perf = io.read("*n")numer = numer + 0.9^i * 2^(perf / 800)endlocal ratn = 800 * mlg(numer / denom) / mlg(2) - fnprint(mfl(ratn + 0.5))