코딩테스트/문제풀이
구름LEVEL_인공지능청소기(별1개)_답
확인해볼까
2022. 5. 4. 20:52
t = int(input()) # 테스트케이스 수
s_list = [list(map(int, input().split())) for _ in range(t)]
for i in range(t) :
if (abs(s_list[i][0]) + abs(s_list[i][1])) <= s_list[i][2] :
if (abs(s_list[i][0]) + abs(s_list[i][1]))%2 == 0 : # 도착지점이 짝수라면
if int(s_list[i][2]) % 2 == 0 :
print('YES')
else:
print('NO')
else :
if int(s_list[i][2]) % 2 == 1 :
print('YES')
else:
print('NO')
else :
print('NO')