[백준] 1145번 : 적어도 대부분의 배수 - Python(파이썬)

강재원·2022년 10월 17일
0

[코딩테스트] Python

목록 보기
116/200



https://www.acmicpc.net/problem/1145

arr=list(map(int,input().split()))
t=0;
num=0;
while 1:
    num+=1
    for i in range(5):
        if num>=arr[i] and num%arr[i]==0:
            t+=1
    if t>2:
        break
    t=0
print(num)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글