728x90
반응형
단순 구현 문제이다.
cnt = 0
for _ in range(int(input())):
y, x, d, w = map(float, input().split())
if (y > 56 or x > 45 or d > 25) and y+x+d > 125 or w > 7:
print(0)
continue
print(1)
cnt += 1
print(cnt)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9713번 Sum of Odd Sequence(python) (0) | 2021.02.23 |
---|---|
백준 알고리즘 9699번 RICE SACK(python) (0) | 2021.02.23 |
백준 알고리즘 9610번 사분면(python) (0) | 2021.02.23 |
백준 알고리즘 9501번 꿍의 우주여행(python) (0) | 2021.02.23 |
백준 알고리즘 9493번 길면 기차, 기차는 빨라, 빠른 것은 비행기(python) (0) | 2021.02.23 |