# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
86514 | MaHaMBa_25 | Hindeks (COCI17_hindeks) | C++14 | 102 ms | 2540 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define GLHF ios_base::sync_with_stdio(0); cin.tie(), cout.tie();
#define GGWP return 0;
#define ALTF4 exit(0)
#define GCWS/*Good Contest, Well Solved*/ ALTF4
#define ull unsigned long long
#define ll long long
#define ld long double
#define fxr1(x) for(int I = 0; I < x; ++I)
#define fxr(x) for(int I = 0; I <= x; ++I)
#define F first
#define S second
using namespace std;
int n, a[500001], ans;
int main()
{
GLHF
cin >> n;
for ( int I = 0; I < n; ++I )
cin >> a[I];
sort(a, a + n);
for ( int I = 1; I < n; ++I )
{
if ( a[0] < a[I] )
++ans;
}
cout << ans << endl;
GGWP
}
//clang++ -v -std=c++11 finish fishing the fish.people
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |