ACM-ICPC 2018 焦作赛区网络预赛 I. Save the Room

#题解
题目大意 给你一定空间 问你能不能用112的矩形填满

所给空间只要有一个能被二整除则可以
#AC代码

#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

const int INF = 0x3f3f3f3f;

int main()
{
#ifdef LOCAL
	freopen("C:/input.txt", "r", stdin);
#endif
	int a, b, c;
	while (cin >> a >> b >> c)
	{
		if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}

	return 0;
}

猜你喜欢

转载自blog.csdn.net/CaprYang/article/details/82715723