文章
6
粉丝
94
获赞
2
访问
2.0k
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
scanf("%d", &n);
int a[105],tmp[105],min=0;
for (int i = 0; i < n; i++)
{
scanf("%d", &a[i]);
}
for (int i = 0; i < n; i++)
{
tmp[i]=a[i];
}
sort(tmp, tmp + n);
int c = tmp[0], d = tmp[n - 1];
int u;
scanf("%d",&u);
for (int k = 0; k < u; k++)
{
int x, y,sum=0;
scanf("%d%d", &x, &y);
for (int i = c; i <= d; i++)
{
...
登录后发布评论
暂无评论,来抢沙发