ACM-ICPC 2018 Jiaozuo Cyber ​​Preliminaries I. Save the Room(水)

样输入
1 1 2
1 1 4
1 1 1
Sample output
Yes
Yes
No

题意:a*b*c cube, ask if you can use 1*1*2 cubes to overlap without overflowing

思维:大胆 Zoom, guess it will be handed over, abc three times any If you can be divisible by 2, you can do it without overlapping.

#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<vector>
#include<queue>
#define maxn 300005
using namespace std;

int main(){
	int a,b,c;
	while(~scanf("%d%d%d",&a,&b,&c)){
		if(c%2==0)printf("Yes\n");
		else if(a%2==0)printf("Yes\n");
		else if(b%2==0)printf("Yes\n");
		else printf("No\n");
	}
	return 0;
}