Полина Кожух, 511 SwapFive 970 | Морозова Вероника Геннадьевна, 321 SwapFive 1233 | ||||
---|---|---|---|---|---|
t | 1 | k = int(input()) | t | 1 | k = eval(input()) |
2 | left_part = 10 * k - 1 | 2 | n = 10 * k - 1 | ||
3 | array = [] | 3 | p = [] | ||
4 | while k not in array: | 4 | while k not in p: | ||
5 | array.append(k) | 5 | p.append(k) | ||
6 | print(10 * k // left_part, sep='', end='') | 6 | print(10 * k // n, sep='', end='') | ||
7 | k = 10 * k % left_part | 7 | k = 10 * k % n |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|