[Python] 4375: 1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
 
while True:
    try:
        n = int(sys.stdin.readline().rstrip())
    except:
        break
    t = ‘1’
    while True:
        if int(t) % n == 0:
            break
        else:
            t += ‘1’
    print(len(t))z
cs

관련글

in-coder 커뮤니티 HOT게시물

제목 작성자 작성일