Created by schraf
Created on March 24, 2023
205 Bytes
Enoncé de l’exercice
def mpo116(n): s = str(n) return max(v * u * (u > 2) for (v, u) in ((int(v), s.count(v)) for v in set(s))) for n in (84884284, 123456, 444444999, 44499, 11, 111, 1): print(n, mpo116(n))