-Code
cnt = 0
for _ in range(int(input())):
length, width, depth, weight = map(float, input().split())
if ((length > 56 or width > 45 or depth > 25)
and length + width + depth > 125 or weight > 7):
print(0)
continue
cnt += 1
print(1)
print(cnt)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 5246번 Checkerboard Rows (0) | 2025.02.07 |
---|---|
[백준/파이썬] 6856번 Roll the Dice (0) | 2025.02.06 |
[백준/파이썬] 9945번 Centroid of Point Masses (0) | 2025.02.04 |
[백준/파이썬] 1213번 팰린드롬 만들기 (0) | 2025.02.03 |
[백준/파이썬] 6162번 Superlatives (0) | 2025.02.02 |