Босиев Игорь Александрович 404 SwapFive 719 | Богданов Евгений 524 SwapFive 1648 | ||||
---|---|---|---|---|---|
t | 1 | k = int(input()) | t | 1 | k = int(input()) |
2 | x = 10 * k - 1 | 2 | x = 10 * k - 1 | ||
3 | a = [] | 3 | a = [] | ||
4 | while k not in a: | 4 | while k not in a: | ||
5 | a += [k] | 5 | a += [k] | ||
6 | print(10 * k // x, sep='', end='') | 6 | print(10 * k // x, sep='', end='') | ||
7 | k = 10 * k % x | 7 | k = 10 * k % x |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|