ACM-ICPC 2018 焦作赛区网络预赛 I Save the Room(水题)

https://nanti.jisuanke.com/t/31718

题意

问能否用1*1*2的长方体填满a*b*c的长方体。

分析

签到。如果a、b、c都是奇数,一定不能。

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e5+10;
const int mod = 1e9 + 7;

int main(){
    int a,b,c;    
    while(~scanf("%d%d%d",&a,&b,&c)){
        if((a&1)&&(b&1)&&(c&1)) puts("No");
        else puts("Yes");
    }
    return 0;
}

 

posted @ 2018-09-17 16:10  litos  阅读(217)  评论(0编辑  收藏  举报