본문 바로가기
python-algorithm

[백준] 4504

by 무적김두칠 2020. 12. 23.

1
2
3
4
5
6
7
8
import sys
n=int(sys.stdin.readline())
while True:
    a=int(sys.stdin.readline())
    if a==0: break
    else:
        if a%n==0print("%d is a multiple of %d."%(a,n))
        elseprint("%d is NOT a multiple of %d."%(a,n))
cs

 

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 4766  (0) 2020.12.23
[백준] 4690  (0) 2020.12.23
[백준] 4493  (0) 2020.12.23
[백준] 4101  (0) 2020.12.23
[백준] 3486  (0) 2020.12.23

댓글