Beakjoon&프로그래머스/파이썬
[백준/파이썬] 14683번 Exactly Electrical
현장
2024. 9. 28. 18:07
-Code
a, b = map(int, input().split())
c, d = map(int, input().split())
t = int(input())
res = t - abs(a - c) - abs(b - d)
print("Y" if res >= 0 and res % 2 == 0 else "N")