/ SeriousOJ /

Record Detail

Memory Exceeded


  
# Status Time Cost Memory Cost
#1 Memory Exceeded ≥94ms ≥256.016 MiB
#2 Memory Exceeded ≥96ms ≥256.016 MiB

Code

#include<bits/stdc++.h>
using namespace std;
int main() {
    int n; cin >> n;
    vector <int> v(1e8+2,0);
    for(int i=0; i<n; i++) {
        int e; cin >> e;
        v[e]++;
    }
    auto ix = find(v.begin(), v.end(), 1);
    cout << ix - v.begin() << endl;
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Contest
Brain Booster #6
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-03 16:44:46
Judged At
2024-11-11 02:47:39
Judged By
Score
0
Total Time
≥96ms
Peak Memory
≥256.016 MiB