본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 22061번 Покупка велосипеда

by 현장 2024. 10. 19.

-Code

for _ in range(int(input())):
    a, b, c = map(int, input().split())

    if c % 2 == 1 and a == 0:
        print("NO")
        continue

    print("YES" if a + b * 2 >= c else "NO")