x_{1} ne x_{2},x_{2}ne x_{3},x_{3}ne x_{4},x_{4}ne x_{1}. The answer should modulo109+7before output.
Given l_{1},r_{1},l_{2},r_{2},l_{3},r_{3},l_{4},r_{4} l 1 ,r 1 ,l 2 ,r 2 ,l 3 ,r 3 ,l 4 ,r 4 ,please count the number of four-tuples (x_{1},x_{2},x_{3},x_{4}) (x 1 ,x 2 ,x 3 ,x 4 ) such that l_{i} leq x_{i} leq r_{i} l i ≤x i ≤r i and x_{1} ne x_{2},x_{2}ne x_{3},x_{3}ne x_{4},x_{4}ne x_{1} x 1 =x 2 ,x 2 =x 3 ,x 3 =x 4 ,x 4 =x 1 The answer should modulo109+7 before output.
(图片来源网络,侵删)