예제 #1
0
def main():
    result = 0
    for n in range(1, 1000000):
        if gmath.is_palindromic_number(n):
            n2 = gmath.base10_to_baseK(n, 2, [])
            if gmath.is_palindromic_number(n2):
                result += n
    return result
예제 #2
0
def main():
    result = 0
    for i in range(999, 0, -1):
        for j in range(999, 0, -1):
            if gmath.is_palindromic_number(i*j):
                temp = i*j
                if temp > result:
                    result = temp
    return result