Disclaimer: Make sure you tried enough before checking the solution
Problem: https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/E
#include<stdio.h> int main(){ int a,b,i,max=0; scanf("%d",&a); for(i=1;i<=a;i++){ scanf("%d",&b); if(b>max){ max=b; } } printf("%d",max); return 0; }
Assiut University Training – Newcomers solution