Find Your Solution Here

Codeforces

codeforces solution 515A – Drazil and Date

Problem link—515A – Drazil and Date
/*

Harun-or-Rashid

CSEDU-23rd Batch

*/

By coder_87, contest: Codeforces Round #292 (Div. 2), problem: (A) Drazil and Date, Accepted, #


#include<bits/stdc++.h>

using namespace std;
int main()
{
    long long a,b,s,ans;
    scanf("%lld%lld%lld",&a,&b,&s);
    ans=abs(a)+abs(b);
    if(s>=ans&&((s%2)==(ans%2)))
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}

Leave a Reply