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