Need help solving "Sum and Xor" problem from ICPC Chennai 2016 regionals

Revision en1, by sp937, 2018-12-25 16:10:18

https://www.codechef.com/problems/CHN16H

My observations:

f(2s, 2x) = f(s, x) if

f(2s, 2x) = 3f(s - 1, x) if

f(2s + 1, 2x + 1) = 3f(s, x) if

f(2s + 1, 2x + 1) = f(s - 1, x) if

Tags acm icpc regionals, chennai_icpc, #number theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sp937 2018-12-25 16:10:18 390 Initial revision (published)