Submission #94059

#TimeUsernameProblemLanguageResultExecution timeMemory
94059MatesV13Hindeks (COCI17_hindeks)C++11
50 / 50
85 ms7544 KiB
#include <bits/stdc++.h> using namespace std; long long n, a[500000], x; int main (){ ios::sync_with_stdio(0); cin.tie(0); cin >> n; for (int i=0;i<n;i++){ cin >> a[i]; } sort(a,a+n); for (int i=0;a[n-i]>=i;i++) x=i; cout << x; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...