请注意你的二分里面 while 循环的判断是 l<rl<rl<r 还是 l≤rl\le rl≤r。
很明显第一个是错的。
这里同时提供这个错误的 hack。
Input:
11 2 10 2 2 10 2 2 10 2 2 2
Output:
128