← Back to List
30224번: Lucky 7 ↗
Solutions
Python 3
78 B | 78 chars
n = input() d = int(n) % 7 == 0 print((3 if d else 2) if "7" in n else int(d))