SHARE
TWEET

Untitled

a guest Dec 8th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. s = set()
  3. for k in range(n):
  4.     help_set = set()
  5.     a = input().split()
  6.     x1, y1, x2, y2 = [int(z) for z in a]
  7.     for i in range(x1, x2):
  8.         for j in range(y1, y2):
  9.             help_set.add((i, j))
  10.     s = s.union(help_set)
  11. print(len(s))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top