Submission #473134

# Submission time Handle Problem Language Result Execution time Memory
473134 2021-09-15T08:38:55 Z Ahmed_Solyman Doktor (COCI17_doktor) C++14
0 / 100
163 ms 7364 KB
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

int main(){
    ll n;cin>>n;
    vector<ll>arr(n);
    for(auto &i:arr)cin>>i;
    ll x=1,y=1;
    for(ll i=0;i<n;i++){
        if(arr[i]!=i+1){
            x=arr[i];
            break;
        }
    }
    for(ll i=0;i<n;i++){
        if(arr[i]!=i+1){
            y=arr[i];
        }
    }
    cout<<x<<" "<<y<<endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 332 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 1492 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 163 ms 7364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 94 ms 4324 KB Output isn't correct
2 Halted 0 ms 0 KB -