Help In Problem

Правка en1, от TheSleepyDevil, 2024-04-15 02:08:13

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)