1 solutions

  • 1
    @ 2026-10-25 10:56:30

    #include<bits/stdc++.h> using namespace std; int main(){ int n,a[101]={0},maxn=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ if(a[i]>maxn){ maxn=a[i]; } } cout<<maxn; return 0; }

    Information

    ID
    2203
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    88
    Accepted
    20
    Uploaded By