首页 > 代码库 > TopCoder SRM629 RectangleCoveringEasy

TopCoder SRM629 RectangleCoveringEasy

只要完全覆盖且不完全相同即可

#include <bits/stdc++.h>
using namespace std;
struct RectangleCoveringEasy {
    int solve(int holeH, int holeW, int boardH, int boardW) {
        if((boardH>=holeH&&boardW>holeW)||(boardH>holeH&&boardW>=holeW)||(boardH>=holeW&&boardW>holeH)||(boardH>holeW&&boardW>=holeH))
            return 1;
        else    
            return -1;
    }
};