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

checking parity of n!/b iopc14

Revision en1, by nilsilu95, 2015-06-17 18:38:09

http://www.codechef.com/IOPC2014/problems/IOPC14A

What is the way to solve this problem? Most of solutions seems to check (n!mod (2*b))>=b or not ,whats the reason for this?

Tags math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nilsilu95 2015-06-17 18:38:09 208 Initial revision (published)