This problem is in Contest(s) below:
Contest 1234:[Usaco2017 Feb]
Contest 1426:树状数组 Fenwick tree
Contest 1311:2019寒假元月21至25号初二测试题
Contest 1355:最靓的仔