当前位置:网站首页>Leetcode 223. rectangular area
Leetcode 223. rectangular area
2022-07-24 15:44:00 【I'm not Xiao Haiwa~~~~】

Here you are. A two-dimensional Two on the plane It is composed of straight lines and the edge is parallel to the coordinate axis / vertical The rectangular , Please calculate and return the total area covered by two rectangles .
Each rectangle is defined by its The lower left Vertex sum The upper right Vertex coordinates represent :
- The first rectangle consists of its lower left vertex (ax1, ay1) And the top right vertex (ax2, ay2) Definition .
- The second rectangle consists of its lower left vertex (bx1, by1) And the top right vertex (bx2, by2) Definition .
Example 1:

Input :ax1 = -3, ay1 = 0, ax2 = 3, ay2 = 4边栏推荐
- Withdrawal of IPO application, Yunzhou intelligent "tour" of unmanned boat enterprise fails to enter the science and Technology Innovation Board
- 未来数据库需要关心的硬核创新
- 2022 / 7 / 20 training record
- Yolo5face: why reinvent the face detector
- Is Huishang futures platform safe? Is it OK to open a futures account?
- Memorythrashing: Tiktok live broadcast to solve memory dithering practice
- pip 安装报错 error in anyjson setup command: use_2to3 is invalid.
- Mysql8 encountered the problem of stopping after the service was started
- Dynamics crm: how to set the order of forms
- 自适应设计和响应式设计
猜你喜欢

遭受DDoS时,高防IP和高防CDN的选择

faster-rcnn 训练自己的数据集

从哪些维度评判代码质量的好坏?如何具备写出高质量代码的能力?

Dynamics 365: how to get the threshold value of executemullerequest in batch requests
![Programming in CoDeSys to realize serial communication [based on raspberry pie 4B]](/img/9c/05118efe2152dc5461a92720732076.jpg)
Programming in CoDeSys to realize serial communication [based on raspberry pie 4B]

Dynamics 365: how to get the authentication information required to connect to D365 online from azure

MySQL之知识点(十二)

【Flutter -- 布局】流式布局(Flow和Wrap)

JUC源码学习笔记3——AQS等待队列和CyclicBarrier,BlockingQueue

降噪蓝牙耳机哪个好?性价比最高的降噪蓝牙耳机排行
随机推荐
What is the ranking of good securities companies? Is online account opening safe
Mlx90640 infrared thermal imager temperature measurement module development notes (III)
R语言ggplot2可视化:ggplot2可视化基本散点图(scatter plot)、通过在theme_bw中指定参数base_size来改变轴标签的大小、并控制网格线和轴标签的大小
iptables常用命令小清单
公钥私钥传输,以及对CA证书的理解
自适应设计和响应式设计
若依 this.$router.push 同地址不同参,页面不刷新问题
MySQL之知识点(十二)
torch_ How to use scatter. Scatter() in detail
Dynamics 365: how to get the threshold value of executemullerequest in batch requests
memcache缓存应用(LNMP+memcache)
Automatic derivation of pytorch
Public and private key transmission, and understanding of CA certificate
Kubernetes static storage and dynamic storage
每天20分钟之feign
Is it safe for Huatai Securities to open a mobile account and will it be leaked
15. Talk about these common multi-threaded interview questions
Dynamics 365: how to get the authentication information required to connect to D365 online from azure
MySQL学习笔记(总结)
Introduction to single chip microcomputer: LED bidirectional water lamp