This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
N = 50 | |
M = N * N | |
# 結果を書き込むファイルのパスを指定する | |
PATH = './palindromic_expression.txt' | |
time_start = time.time() | |
print('searching...') | |
# 任意の1桁の数は回文数なので,n ≧ 11として探索する | |
for n in range(11, N): |