Киселёв Евгений, 402 группа SwapFive 438 | Богданов Евгений 524 SwapFive 1648 | ||||
---|---|---|---|---|---|
f | 1 | k = int(input()) | f | 1 | k = int(input()) |
t | 2 | a = 10 * k - 1 | t | 2 | x = 10 * k - 1 |
3 | number = [] | 3 | a = [] | ||
4 | while k not in number: | 4 | while k not in a: | ||
5 | number += [k] | 5 | a += [k] | ||
6 | print(10 * k // a, sep='', end='') | 6 | print(10 * k // x, sep='', end='') | ||
7 | k = 10 * k % a | 7 | k = 10 * k % x |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|