https://www.acmicpc.net/problem/1145
1145번: 적어도 대부분의 배수
첫째 줄에 다섯 개의 자연수가 주어진다. 100보다 작거나 같은 자연수이고, 서로 다른 수이다.
www.acmicpc.net
from sys import stdin
box = list(map(int, stdin.readline().split()))
target = 1
while True:
ipx = 0
for i in box:
if target % i == 0:
ipx += 1
if ipx >= 3:
break
target += 1
print(target)