ПУТИЛОВ ГЕОРГИЙ КОНСТАНТИНОВИЧ SwapFive 961 | Морозова Вероника Геннадьевна, 321 SwapFive 1233 | ||||
---|---|---|---|---|---|
t | 1 | k = int(input()) | t | 1 | k = eval(input()) |
2 | x = 10 * k - 1 | 2 | n = 10 * k - 1 | ||
3 | a = [] | 3 | p = [] | ||
4 | while k not in a: | 4 | while k not in p: | ||
5 | a.append(k) | 5 | p.append(k) | ||
6 | print(10 * k // x, sep='', end='') | 6 | print(10 * k // n, sep='', end='') | ||
7 | k = 10 * k % x | 7 | k = 10 * k % n |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|