赛码网--算法--pr1
2017-04-11 16:44 faye993110 阅读(165) 评论(0) 收藏 举报题目---约会
难度:一颗星

代码:
public class Main {
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
int a,b,c;
while(cin.hasNextInt()){
a=cin.nextInt();
b=cin.nextInt();
c=cin.nextInt();
a=Math.abs(a);
b=Math.abs(b);
if(a+b<=c&&(c-a-b)%2==0){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
}
浙公网安备 33010602011771号