矩形面积
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
简单的面积计算。
题目内容
给定二维平面上一个轴对齐的矩形,由其左下角点 (x1, y1) 和右上角点 (x2, y2) 定义。计算并输出该矩形的面积。
输入输出格式
输入格式
一行,包含四个整数 x1, y1, x2, y2,用空格隔开,表示矩形的两个对角点坐标。
输出格式
一行,输出矩形的面积。(假设面积可为任意实数)
测试样例1
输入
0 0 1 1
输出
1
参数取值范围
· -10^9 ≤ x1, y1, x2, y2 ≤ 10^9
国庆七天乐
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 11
- Start at
- 2025-9-30 6:00
- End at
- 2025-10-8 14:00
- Duration
- 200 hour(s)
- Host
- Partic.
- 50