delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include<cstdio>
using namespace std;
int main()
{
int n,max,min,x;
scanf("%d",&n);
scanf("%d",&x);
max=min=x;
for(int i=1;i<n;i++)
{
scanf("%d",&x);
if(x<min) min=x;
if(x>max) max=x;
}
printf("%d\n",max-min);
return 0;
}