40582023-03-12 16:04:06horvathabelNegáló rendezés (55 pont)cpp17Wrong answer 14/5578ms12916 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	map<int, int> m;
	int mn=10e9+1; 
	for (int i=0; i<n;i++){
		int x;
		cin>>x;
		m[x]++; 
		mn=min(x,mn);
	}
	int ans=1; 
	for (auto i:m){
		if (i.first!=mn) ans*=i.second+1;
	}
	cout<<ans; 
}
SubtaskSumTestVerdictTimeMemory
base14/55
1Accepted0/03ms1812 KiB
2Wrong answer0/063ms5628 KiB
3Accepted2/22ms2216 KiB
4Accepted2/22ms2432 KiB
5Accepted2/22ms2512 KiB
6Accepted2/23ms2752 KiB
7Accepted3/33ms2852 KiB
8Wrong answer0/23ms2932 KiB
9Wrong answer0/33ms3112 KiB
10Wrong answer0/368ms11828 KiB
11Wrong answer0/378ms12916 KiB
12Accepted3/335ms3440 KiB
13Wrong answer0/334ms3560 KiB
14Wrong answer0/350ms5484 KiB
15Wrong answer0/343ms4056 KiB
16Wrong answer0/361ms7560 KiB
17Wrong answer0/359ms8044 KiB
18Wrong answer0/348ms5244 KiB
19Wrong answer0/361ms7744 KiB
20Wrong answer0/354ms6388 KiB
21Wrong answer0/346ms5344 KiB
22Wrong answer0/341ms4824 KiB