简单,注意不要加上他自己的时间
2026-07-12 13:01:48
发布于:安徽
2阅读
0回复
0点赞
题面蛮好玩的,看笑了
#include<bits/stdc++.h>
using namespace std;
int a[114514];
int ans;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
}
int x, y;
cin >> x >> y;
for (int i = x; i < y; i++) {
ans += a[i];
}
cout << ans;
return 0;
}
这里空空如也






有帮助,赞一个