728x90
반응형
단순 사칙연산 문제이다.
p1, q1, p2, q2 = map(int, input().split())
res = p1/q1 * p2/q2 / 2
if int(res) == res:
print(1)
else:
print(0)
p1, q1, p2, q2 = map(int, input().split())
res = p1/q1 * p2/q2 / 2
print(1 if int(res) == res else 0)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15474번 鉛筆(python) (0) | 2021.02.07 |
---|---|
백준 알고리즘 15236번 Dominos(python) (0) | 2021.02.07 |
백준 알고리즘 15080번 Every Second Counts(python) (0) | 2021.02.07 |
백준 알고리즘 15059번 Hard choice(python) (0) | 2021.02.07 |
백준 알고리즘 15051번 Máquina de café(python) (0) | 2021.02.07 |