题解 | #小名的回答#
小名的回答
https://ac.nowcoder.com/acm/contest/19304/H
#include<iostream> using namespace std; int main() { int a,b,n; cin>>a>>b>>n; if(a<0)a=-a; if(b<0)b=-b; if((a+b<=n)&&(n-a-b)%2==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
小名的回答
https://ac.nowcoder.com/acm/contest/19304/H
#include<iostream> using namespace std; int main() { int a,b,n; cin>>a>>b>>n; if(a<0)a=-a; if(b<0)b=-b; if((a+b<=n)&&(n-a-b)%2==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
相关推荐