#include<iostream>
using namespace std;
int max(int a[], int n)
{
int max = a[0];
for(int i = 0; i< n; i++)
if(max < a[i])
max = a[i];
}
int min(int a[], int n)
{
int min = a[0];
for(int i = 0; i< n; i++)
if(min < a[i])
return min;
}
int main()
{
int a[100];
int m, t1, t2;
freopen("input.txt","r",stdin);
cin >> m;
for(int i = 0; i< 100; i++)
cin >> a[i];
int ans = 0;
/*for(int j = 0; j < m; j++)
{
t1=max(a,100)-1;
t2=min(a,100) +1;
}*/
//ans = max(a,100) - min(a,100);
cout << max(a,100)<< endl;
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.