Suppose we are given a constant c in the beginning and an array. We have range updates(add a value on a range) and range queries(how many occurrences of c are there in a given range?). Is it possible to effectively perform these queries? I know how to do that for counting the number of minimums/maximums, but I'm not sure if there is a way do that for a constant c given in the beginning. Thanks in advance.
Hello Codeforces! I would like to make a feature request that in my opinion is extremely useful for virtual participants. Without a lot of talk, let me get straight to the feature i have in my mind : A rating system for the virtual contests. After someone participates in a contest, he can rate the contest on a scale from 1 to 5 or 1 to 10 for example. The rating of a contest will be the average of all the rates given by participants. This way, it will be easier to compare a contest to another, thus easier to choose a good contest to virtually participate in. Of course, only trusted participants should be allowed to rate a contest, for example only div1 users. Also, the participants should be allowed to only vote once.
UPD: It seems that rating the problems and defining the rating of a contest as the average of the ratings of the problems is a better option here.