156052025-02-21 09:07:29MrkzLegmesszebbi rossz sorrendű (35 pont)cpp17Wrong answer 2/35300ms804 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int N,ind1,ind2;
    cin>>N;
    vector<int> E(N+1);
    for(int i=1;i<=N;i++)
        cin>>E[i];
    bool b=true;
    for(int i=1;i<=N && b==true;i++)
    for(int j=N;j>i && b==true;j--){
        if(E[j]-E[i]<0){
            ind1=i;
            ind2=j;
            b=false;
        }
    }
    cout<<ind1<<" "<<ind2;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base2/35
1Accepted0/01ms508 KiB
2Wrong answer0/037ms564 KiB
3Wrong answer0/11ms316 KiB
4Accepted1/11ms316 KiB
5Wrong answer0/11ms316 KiB
6Accepted1/11ms372 KiB
7Wrong answer0/11ms316 KiB
8Wrong answer0/11ms316 KiB
9Wrong answer0/11ms404 KiB
10Wrong answer0/12ms408 KiB
11Wrong answer0/12ms412 KiB
12Wrong answer0/214ms576 KiB
13Wrong answer0/217ms584 KiB
14Wrong answer0/217ms568 KiB
15Wrong answer0/210ms512 KiB
16Wrong answer0/218ms564 KiB
17Wrong answer0/226ms564 KiB
18Wrong answer0/228ms564 KiB
19Wrong answer0/232ms800 KiB
20Wrong answer0/232ms564 KiB
21Wrong answer0/235ms564 KiB
22Wrong answer0/237ms804 KiB
23Time limit exceeded0/2300ms648 KiB
24Time limit exceeded0/2282ms564 KiB