TheSleepyDevil's blog

By TheSleepyDevil, history, 5 weeks ago, In English

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 ?

Full text and comments »

  • Vote: I like it
  • -11
  • Vote: I do not like it