当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3563:Jesus of Suburbia

题目描述
Lines are of single-dimension.
Surfaces are of double-dimension.
Cubes are of triple-dimension.
Jesus is of four-dimension.

Jesus told you that: I do not want to stay in the four-dimensional space but N-dimensional space instead. However, I do not know what the N-dimensional space is like, and therefore I need your help. I want to know the Union of the (length or area or volume, etc) of M N-dimensional object. You have to calculate the number.
输入解释
There are several test cases in the input.

The first line includes two positive integer M and N (1 ≤ N ≤ 10, 1 ≤ M ≤ 100) indicating there are M N-dimensional objects.
The following 2M lines describe M N-dimensional objects.
For each subject, there are two lines:
The first line contains N integers describing a corner.
The second line contains N integers describing the opposite corner.
You can assume all coordinates are no more than 10^9.

The input terminates by end of file marker.
输出解释
For each test case, output an integer, indicating the union (length or area or volume, etc), because the result maybe very large, so just mod 14121413.

输入样例
3 2
3 3
8 10
2 2
3 3
0 0
1 8
输出样例
44

提示
Happy birthday to DaoThree!
来自杭电HDUOJ的附加信息
Author DaoThree@WHU
Recommend zhouzeyong

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-3563

最后修改于 2020-10-25T23:04:47+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
4000/2000MS(Java/Others) 131072/65536K(Java/Others)