Codey and Rectangles 2
https://www.hackerrank.com/contests/codenection-2024-final-round-closed-category/challenges/cn24-19
Last updated
https://www.hackerrank.com/contests/codenection-2024-final-round-closed-category/challenges/cn24-19
Last updated
2
1 3 0 2
0 2 1 37array = [[0 for _ in range(100)] for _ in range(100)]
n = int(input().strip())
for _ in range(n):
x1, x2, y1, y2 = map(int, input().split())
for i in range(x1, x2):
for j in range(y1, y2):
array[i][j] = 1
print(sum(row.count(1) for row in array))