This problem was deleted from the contest, because it was used previously at another competition.
示例1

输入

1 1<br />1 2 100<br />

输出

6<br />
加载中...