标签:style os ar amp c++ on sp return
只要完全覆盖且不完全相同即可
#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; } };
TopCoder SRM629 RectangleCoveringEasy,布布扣,bubuko.com
TopCoder SRM629 RectangleCoveringEasy
标签:style os ar amp c++ on sp return
原文地址:http://blog.csdn.net/nenuxlp/article/details/38532375