제출 #98511

#제출 시각아이디문제언어결과실행 시간메모리
98511pamajZoltan (COCI16_zoltan)C++14
14 / 140
210 ms20252 KiB
#include <bits/stdc++.h>
using namespace std;

int v[100010];
int n;
map<int, int> mp;
set<int> st;
int main()
{

	cin >> n;

	for(int i = 0; i < n; i++)
	{
		cin >> v[i];
		mp[v[i]]++;
		st.insert(v[i]);
	}

	long long ans = 1;

	for(auto u : st)
	{
		ans *= mp[u];
		ans %= (1000000007);
	}

	cout << st.size() << " " << ans << "\n";
}
#Verdict Execution timeMemoryGrader output
Fetching results...