1 solutions

  • 0
    @ 2024-12-11 20:26:30

    #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int maxv; for(int i=1;i<=n;i++) { int x; cin>>x; if(i==1||x>maxv) { maxv=x; } } cout<<maxv; return 0; }

    • 1

    Information

    ID
    873
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    121
    Accepted
    57
    Uploaded By