Cows(树状数组)
Cows Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 24787 Accepted: 8296 Description Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good. Farmer John has N cows (we number the cows from 1 to N). Each of Farmer John's N cows has a range of clover that she particularly likes (these ranges might overlap). The ranges are defined by a closed interval [S,E]. But some cows are strong and some are weak. Given two cows: cow i and cow j , their favourite clover range