#P13679. [IAMOI R2] 传奇模数
[IAMOI R2] 传奇模数
Description
In OI competitions, modular operation is indispensable. Among various prime numbers, possesses excellent properties and is frequently used as a modulus.
Little Y adores OI and particularly enjoys integer division and modular operations. He provides you with an integer and requests you to compute:
$$\left(\left\lfloor\frac{1}{998244353}\right\rfloor + \left\lfloor\frac{2}{998244353}\right\rfloor + \cdots + \left\lfloor\frac{n}{998244353}\right\rfloor\right) \bmod 998244353$$Input Format
A single line containing one positive integer .
Output Format
Output an integer representing the answer.
998244353
1
1145141919810
839522406
Hint
【Data Range】
- For of the data, .
- For of the data, .
- For of the data, .
京公网安备 11011102002149号