4 lines
168 B
Python
4 lines
168 B
Python
#!/usr/bin/env python3
|
|
|
|
print(sum(x<=a<=y or x<=b<=y or a<=x<= b or a<=y<=b for a,b,x,y in(map(int,l.strip().replace(',', '-').split('-'))for l in open("input.txt"))))
|