Submission #86440

# Submission time Handle Problem Language Result Execution time Memory
86440 2018-11-26T10:07:29 Z Asag Hindeks (COCI17_hindeks) C++14
5 / 50
209 ms 2416 KB
#include <bits/stdc++.h>
using namespace std;
int n , mn = 1e9,a[500000 + 5],cnt;
int main()
{
	cin>>n;
	for(int i = 1; i <= n;i ++)
	{
		cin>>a[i];
		mn = min(a[i],mn);
	}
	for(int i = 1; i <= n ;i ++)
	{
		if(mn != a[i])cnt++;
	}cout<<cnt;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 376 KB Output is correct
2 Incorrect 2 ms 380 KB Output isn't correct
3 Incorrect 2 ms 440 KB Output isn't correct
4 Incorrect 2 ms 488 KB Output isn't correct
5 Incorrect 2 ms 512 KB Output isn't correct
6 Incorrect 3 ms 512 KB Output isn't correct
7 Incorrect 5 ms 648 KB Output isn't correct
8 Incorrect 40 ms 924 KB Output isn't correct
9 Incorrect 209 ms 2416 KB Output isn't correct
10 Incorrect 114 ms 2416 KB Output isn't correct