mirror of
https://gitlab.com/MisterBiggs/advent-of-code-2019.git
synced 2025-06-15 22:56:47 +00:00
14 lines
259 B
Python
14 lines
259 B
Python
start = 272091
|
|
end = 815432
|
|
count = 0
|
|
|
|
for i in range(start, end):
|
|
code = [int(x) for x in list(str(i))]
|
|
|
|
if code == sorted(code):
|
|
for c in code:
|
|
if code.count(c) == 2:
|
|
count += 1
|
|
break
|
|
print(count)
|