Bob has a magic computer which has infinite USB ports. But there is a problem with this computer——it can only read and write the two most recently inserted USB disks.
Initially, Bob has $$$n$$$ USB disks and every USB disk has one unique file. He wants to insert all the $$$n$$$ USB disks into his computer. Since his computer is old, he must insert USB disk in the following way:
Bob wants to know the minimum number of $$$n$$$ such that there is a sequence of operations that ends up with at least $$$k$$$ different files in each USB disk.
Only one number,$$$k$$$ ($$$2\leq k \leq 100000$$$),meaning that finally each USB disk owns at least $$$k$$$ different files.
You need to output one number $$$n$$$, which means the minimum number of USB disks in module 998244353.
3
4
5
16
1000
510735315
| Name |
|---|


