General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
115463803 Practice:
aekizil
27A - 6 GNU C++11 Wrong answer on test 1 0 ms 3804 KB 2021-05-07 02:19:30 2021-05-07 02:19:30
→ Source
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n; cin >> n;
    int arr[n]; for (int i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr+n);
    
    for (int i = 1; i < arr[n-1]; i++) {
        for (int j = 0; j < n; j++) {
            if (i == arr[j]) goto a;
        }
        cout << i;
        return 0;
        a:;
    }
    return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details