Problem 1002 Is Sample 1 's output right?

taocp | 2015-08-22 20:04:20Author
aren't it be 1/4*1/4*6 + 3/4*1/4*5?
admin | 2015-08-22 20:05:32# 1
就算选出来的区间没有交 算方案数的时候还是计算贡献的