fork download
  1. __author__ = 'Zlobober'
  2.  
  3. n = int(raw_input())
  4. ans = 0
  5. for i in range(n):
  6. x1, y1, x2, y2 = map(int, raw_input().split())
  7. ans += (x2 - x1 + 1) * (y2 - y1 + 1)
  8.  
  9. print ans
  10.  
Runtime error #stdin #stdout #stderr 0.01s 7692KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 3, in <module>
EOFError: EOF when reading a line