Project Euler #36: Double-base palindromes

  • + 2 comments

    for test case 1 , use unsigned long long int instead of long long int to store the number in base k...because 10^6 in binary will have around 20 digits and long long int causes overflow.