-
2
Background
Given a set of rectangles {R1, R2, …, Rn}, compute the area of their common intersection. i.e.,
Area(R1∩R2∩…∩Rn)
The edges of the rectangles R1, R2, …, Rn, are either vertical or horizontal lines.
For example, the intersection of 4 rectangles, R1, R2, R3, and R4, in the following figure is the shaded rectangle.
Input
The input contains (N + 1) lines. The first line specifies the number of rectangles N, where 1 < N < 1000. Since the sides of the rectangles are parallel to the x-axis and y-axis, each rectangle is bounded by the lines x = x1, x = x2, y = y1 and y = y2 and each subsequent line of the input file thus specifies one rectangle in the following format:
x1 x2 y1 y2
such that 0 <= x1 < x2 <= 10000 and 0 <= y1 < y2 <= 10000, and x1, x2, y1 and y2 are integers.
Output
The output file contains the area of the intersection of all the rectangles.
- 2013-11-15 02:58:38下载
- 积分:1
-
This is a game basis, we can not say that I was all, some things inside me, thin...
这是一个游戏基础,不能说全部是我的,里面有些东西是我的,思想-This is a game basis, we can not say that I was all, some things inside me, thinking
- 2022-06-30 13:58:19下载
- 积分:1
-
本程序根据用户不同的需求设计窗口的背景,通过调色板来来选择不同的颜色...
本程序根据用户不同的需求设计窗口的背景,通过调色板来来选择不同的颜色-the procedures under different user needs to design the window background, the palette to choose different colors
- 2022-02-02 00:56:34下载
- 积分:1
-
hoard
内存优化工具, 只需要在exe上加上此动态库就可以(Memory optimization tools only need to add this dynamic library to the exe)
- 2018-02-26 15:16:16下载
- 积分:1
-
shortestPath-master
说明: 基于迪杰斯特拉算法的最短路径规划,基于python平台实现(Shortest path planning based on Dijkstra algorithm and implemented on Python platform)
- 2020-06-25 09:00:02下载
- 积分:1
-
物联网创新实验系统-OURS-IOTV2-2530[2013.03.07]
这是物联网相关的技术知识,其中包括各个实验的详细介绍(Technical knowledge related to the Internet of things)
- 2018-05-24 15:08:40下载
- 积分:1
-
ThermalImageStreamerDemo
Thermal-Image-Streamer-Demo
- 2018-05-30 16:06:32下载
- 积分:1
-
ECC
对于结构分析中的下降段,计算出荷载下降至最大荷载0.85倍时的位移值,然后计算该位移值与最大荷载对应位移值得比值,即延性系数。(Therefore, the early-age cracking and splitting were avoided and the steel components could fully develop its strength, which resulted in a higher peak load and stiffness.)
- 2020-06-17 10:40:02下载
- 积分:1
-
EEPROM接口的FPGA实现
EEPROM接口的FPGA实现
工程说明
AT93C46在DI接收到读指令时,地址被解码,数据在DO引脚上串行输出。写周期是完全自主调时的,在写入之前不需要单独的擦除周期。本项目要求AT93C46完成读和写功能的混合功能。
案例补充说明
本案例要求实现一个AT93C46的接口能够根据命令,实现EWEN、WRITE和READ功能,在这里我们提供了具体的设计思路:
1. 上游模块在rdy=1时,给出start命令,开始进行EWEN、WRITE或者READ操作;在rdy=0期间,start命令无效。
2. 当start有效时,如果mode=0表示进行EWEN操作;mode=1表示进行WRITE操作;mode=2表示进行READ操作。
3. 当start有效时,addr和wdata有效。
4. 当进行EWEN操作时,将addr写入at93c46。
5. 当进行WRITE操作时,将addr和wdata写入at93c46。
6. 当进行READ操作时,将addr写入at93c46,并从at93c46读到数据,通过rdata和rdata_vld返回给上游模块。(FPGA implementation of EEPROM interface
Engineering description)
- 2017-08-01 16:44:23下载
- 积分:1
-
timesat_batch_tool
TIMESAT,three processing methods based on least-squares fits to the upper envelope of the NDVI data.
- 2020-06-20 08:00:01下载
- 积分:1