本文主要是介绍TopCoder SRM 629 题解,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
题目A:
Problem Statement | |||||||||||||
There is a rectangular hole in the ground. You are given the dimensions of this rectangle: ints holeH and holeW. You have a rectangular board. You are given its dimensions: ints boardH and boardW. You would like to use the board to cover the hole. There are some rules you must follow when covering the hole:
If you can cover the hole using the board you have, return 1. Otherwise, return -1. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Limits | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
- | holeW, holeH, boardW, and boardH will be between 1 and 1,000,000,000, inclusive. | ||||||||||||
Examples | |||||||||||||
0) | |||||||||||||
|
这篇关于TopCoder SRM 629 题解的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!