71 lines
990 B
Python
71 lines
990 B
Python
|
# for i in range(2, 50):
|
||
|
# print(f"[{i}, ],")
|
||
|
nums = [
|
||
|
[2, 1],
|
||
|
[3, 2],
|
||
|
[4, 1],
|
||
|
[5, 4],
|
||
|
[6, 5],
|
||
|
[7, 4],
|
||
|
[8, 1],
|
||
|
[9, 2],
|
||
|
[10, 9],
|
||
|
[11, 0],
|
||
|
[12, 5],
|
||
|
[13, 10],
|
||
|
[14, 11],
|
||
|
[15, 14],
|
||
|
[16, 9],
|
||
|
[17, 0],
|
||
|
[18, 11],
|
||
|
[19, 18],
|
||
|
[20, 9],
|
||
|
[21, 11],
|
||
|
[22, 11],
|
||
|
[23, 15],
|
||
|
[24, 17],
|
||
|
[25, 9],
|
||
|
[26, 23],
|
||
|
[27, 20],
|
||
|
[28, 25],
|
||
|
[29, 16],
|
||
|
[30, 29],
|
||
|
[31, 27],
|
||
|
[32, 25],
|
||
|
[33, 11],
|
||
|
[34, 17],
|
||
|
[35, 4],
|
||
|
[36, 29],
|
||
|
[37, 22],
|
||
|
[38, 37],
|
||
|
[39, 23],
|
||
|
[40, 9],
|
||
|
[41, 1],
|
||
|
[42, 11],
|
||
|
[43, 11],
|
||
|
[44, 33],
|
||
|
[45, 29],
|
||
|
[46, 15],
|
||
|
[47, 5],
|
||
|
[48, 41],
|
||
|
[49, 46],
|
||
|
]
|
||
|
ans = 11 * 17
|
||
|
while True:
|
||
|
flag = True
|
||
|
for num, mod in nums:
|
||
|
a, b = divmod(ans, num)
|
||
|
if b != mod:
|
||
|
flag = False
|
||
|
break
|
||
|
|
||
|
if flag:
|
||
|
print(ans)
|
||
|
break
|
||
|
|
||
|
ans += 11
|
||
|
if ans > pow(10, 17):
|
||
|
break
|
||
|
|
||
|
print(flag, ans)
|