No.445 Score
問題文最終更新日: 2026-10-12 03:59:20
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 154
(順位表)
の他の問題:
Problem Statement
On yurufuWAcoder, the score $f(N,K)$ obtained when you are the $K$-th to solve a problem with $N$ stars is defined by the following formula.
$$
f(N,K) = 50 \times N + \left \lfloor \frac{ 50 \times N }{ 0.8+ 0.2×K} \right \rfloor
$$
Here, $\lfloor x \rfloor$ denotes $x$ with its fractional part truncated.
Given $2$ natural numbers $A,B$, output $f(A,B)$.
Input
$A\;B$
- $1 \leq A \leq 6$
- $1 \leq B \leq 10^3$
Output
Output the answer on $1$ line.
Sample
Sample 1
Input
1 1
Output
100
Sample 2
Input
2 31
Output
114
Sample 3
Input
6 3
Output
514
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
紙ぺーぱー
りあん