HDU 1689 Just a Hook 线段树区间更新求和

The input consists of several test cases. The first line of the input is the number of the cases. There are no more than 10 cases.For each case, the first line contains an integer N, 1<=N<=100,000, which is the number of the sticks of Pudge’s meat hook and the second line contains an integer Q, 0<=Q<=100,000, which is the number of the operations.Next Q lines, each line contains three integers X, Y, 1<=X<=Y<=N, Z, 1<=Z<=3, which defines an operation: change the sticks numbered from X to Y into the metal kind Z, where Z=1 represents the cupreous kind, Z=2 represents the silver kind and Z=3 represents the golden kind.

,没有朋友的人生是孤独的,不完整的,可是,因为生活的忙碌,

HDU 1689 Just a Hook 线段树区间更新求和

相关文章:

你感兴趣的文章:

标签云: