harshalpamecha3's blog

By harshalpamecha3, history, 4 months ago, In English
 
 
 
 
  • Vote: I like it
  • +7
  • Vote: I do not like it

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

If all the numbers are 1 then both can win depending upon the value of n. And also why are you xoring p-1? You should xor p instead.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Do you really understand Nim and Sprague-Grundy theorem ?