You Have Number N initialy equal to 1 , and there is 2 operations : 1) 1 x : multiple n by , n=n*x 2) 2 x : check if n%(x!)=0 , n mod (factorial x) = 0
Query up to 1e5 , x up to 1e6
Any hint ?
Help In Problem
You Have Number N initialy equal to 1 , and there is 2 operations : 1) 1 x : multiple n by , n=n*x 2) 2 x : check if n%(x!)=0 , n mod (factorial x) = 0
Query up to 1e5 , x up to 1e6
Any hint ?
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
TheSleepyDevil | 2024-04-15 02:08:13 | 217 | Initial revision (published) |