MMR Double Down Tokens官方中文
题目描述
官方中文Bobo has recently been playing Dota2. Due to a new event, "Crownfall" in Dota2, Bobo received a number of $k$ Double Down Tokens. In ranked contests of Dota2, players receive $+1$ MMR for wins and $-1$ MMR for loses. MMR Double Down tokens are items that can be used \textbf{at the beginning of a ranked contest}, so that the MMR gained in this contest will be doubled ($+2$ for wins and $-2$ for loses). However, Bobo suspects that Dota2 uses the ELO matching system to balance the winrates of players so that he will receive exactly $n$ wins and $m$ loses in the upcoming $n+m$ contests, and all possible combinations of $n$ wins and $m$ loses will appear with equal probability. Now, Bobo wants to design a strategy to use some of the $k$ MMR Double Down tokens so that after the $n+m$ contests, the expected additional MMR gained using MMR Double Down Tokens(that is, the MMR change across all $n+m$ contests, subtracted by $n-m$) is maximum. You need to find out this maximum expected value.官方中文
输入格式
官方中文The only line of input contains $3$ integers $n,m,k$ $(1\leq n,m\leq 5\cdot 10^6, 0\leq k\leq n+m)$.官方中文
输出格式
官方中文Output an integer in one line, denoting the answer. Under the input constraints of this problem, it can be shown that the answer can be written as $\frac{P}{Q}$, where $P$ and $Q$ are coprime integers and $Q\not\equiv 0\pmod {998244353}$. You need to output $P\cdot Q^{-1}\pmod{998244353}$ as an answer, where $Q^{-1}$ is the modular inverse of $Q$ with respect to $998244353$.官方中文
样例
1 1 24991221771 3 004 1 55989466151 9 5299473306题面与样例版权归 牛客竞赛 及出题人所有;中文翻译由 AI 生成(官方原文),如有出入请以原文为准。