Bzoj 2724 [Violet 6]蒲公英
DescriptionInput
修正一下l = (l_0 + x - 1) mod n + 1, r = (r_0 + x - 1) mod n + 1OutputSample Input6 3 1 2 3 2 1 2 1 5 3 6 1 5
Sample Output1 2 1
HINT修正下:n <= 40000, m <= 50000题解:分块+二分+离散化代码:
点击这里/*
原创
2016-07-04 16:22:33 ·
449 阅读 ·
0 评论