Please read the new rule regarding the restriction on the use of AI tools. ×

zeref_dragoneel's blog

By zeref_dragoneel, history, 9 years ago, In English

http://www.spoj.com/problems/BORING/

I know a Abs(N-P) Algorithm using Wilson's theorem (per test case) but that is not passing the time limit. Can someone suggest something ?

  • Vote: I like it
  • +3
  • Vote: I do not like it