cmod.ify
[코드트리] 공약수 본문
728x90
반응형
a,b = map(int, input().split())
gong = []
for i in range(2, 1920):
if (1920 & i == 0) and (2880 & i == 0):
gong.append(i)
s = False
for j in range(len(gong)):
if (gong[j] >= a) and (gong[j] <= b):
s = True
if s == True:
print(1)
else:
print(0)
728x90
반응형
'BASIC > 코딩테스트' 카테고리의 다른 글
| [1764] 듣보잡 (0) | 2025.12.19 |
|---|---|
| [11723] 집합 (0) | 2025.12.18 |
| [1620] 나는야 포켓몬 마스터 이다솜 (0) | 2025.12.18 |
| [코드트리] 체크 다이아몬드 (2) | 2023.10.24 |
| [코드트리] 두 개의 직각삼각형 (0) | 2023.10.22 |