Codeforces 1189C Candies!

題目鏈接:http://codeforces.com/problemset/problem/1189/C 思路:前綴和。 AC代碼: #include<bits/stdc++.h> using namespace std; const int maxn = 1e5 +5; int a[maxn]; int n, m; int ask(int x,int y) { return (a[y]
相關文章
相關標籤/搜索