C++ STL

Revision en1, by sourabh_jangid, 2020-01-22 10:19:18

I was solving 691E - Xor-последовательности, and in the problem asked to find number of ones in binary representation of a number, I was using C++ STL __builtin_popcount() function to find Number of ones, but when I submitted I got wrong answer verdict, and then I wrote my own function to count Number of ones and then my solution passed. Can anyone explain to me why this is happening? My AC 69283580 code and WA 69283537 code.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sourabh_jangid 2020-01-22 10:19:18 448 Initial revision (published)