A Xor Problem
Difference between en1 and en2, changed 0 character(s)
Given T(1 <= T <= 1e5) the no. of test cases.<br>↵
Each testcase contains an integer N(1 <= N <= 1e18).<br>↵
We define F(x) as the xor of all the digits in x.<br>↵
Find  $\sum_{x=1}^{N} F(x)$  (summation of F(x) where x goes from 1 to N) for each testcase.<br> ↵

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English virus_1010 2016-12-26 11:12:26 36 Tiny change: 'se.<br> \n' -> 'se.<br> \nCan anyone help me with this? <br>\n'
en2 English virus_1010 2016-12-26 10:50:50 0 (published)
en1 English virus_1010 2016-12-26 10:49:07 276 Initial revision (saved to drafts)