-->
当前位置:首页 > 题库

PROGRAMMING:Little love puzzle

Luz5年前 (2021-05-10)题库419
Xiaoai looks for master Bayi to play chess. But after she sneaks into the family, she finds that master Bayi is not at home. There are only two rectangular puzzles lying on the chessboard. Xiaoai is very interested in sitting down and playing on the chessboard. She puts the wider one on the bottom and the other on the top, assuming that the two puzzles are just placed along the chessboard grid, How many rectangles on the chessboard surround the two puzzles.
The example is shown in the picture. Red and blue are two pieces of jigsaw puzzle. The green part is what you need[ 22948f7ed33f6ae22768a5c321a82541ec318626.png](~/9e17a8ce-f9d2-420a-a976-cd93a4c0b45b.png)
###Input format:
Input W1, H1, W2, H2 to indicate the width and height of two rectangles (W1 > = W2)
###Output format:
Output the number of adjacent bounding rectangles
###Input example:
```in
2 1 2 1
```
###Output example:
```out
twelve
```







answer:If there is no answer, please comment