1735 矩形面积并1


Submit solution

Points: 100
Time limit: 2.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

N个矩形,求面积并

Input

多个case. 第一行一个N(<=100),后面N行,每行四个整数x1,y1,x2,y2 (范围都是<=2*10^6)

Output

输出总面积

Sample

Input

2
0 0 1 1
2 2 3 3
2
0 0 3 3
2 2 4 4

Output

2
12

Source: dd


Comments

There are no comments at the moment.