4 solutions

  • 0
    @ 2026-2-3 14:39:24

    #include<bits/stdc++.h> using namespace std; int n,h,m; int main() { int n; cin>>n; int last; cin>>last; int ans=-1; for(int i=2;i<=n;i++) { int x; cin>>x; if(x>last) { ans=i; break; } } cout<<ans; return 0;

    • `
    • [ ] `
    1. - > ```[language]($$)*~~~~*
    

    `

    1. } ``
    `

    Information

    ID
    2346
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    141
    Accepted
    51
    Uploaded By