Submission #98512

# Submission time Handle Problem Language Result Execution time Memory
98512 2019-02-23T19:52:58 Z pamaj Zoltan (COCI16_zoltan) C++14
0 / 140
543 ms 19676 KB
#include <bits/stdc++.h>
using namespace std;

int v[200010];
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 *= pow(2, mp[u]);
		ans %= (1000000007);
	}

	cout << st.size() << " " << ans << "\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Incorrect 2 ms 256 KB Output isn't correct
3 Incorrect 2 ms 256 KB Output isn't correct
4 Incorrect 2 ms 256 KB Output isn't correct
5 Incorrect 2 ms 384 KB Output isn't correct
6 Incorrect 1 ms 384 KB Output isn't correct
7 Incorrect 4 ms 384 KB Output isn't correct
8 Incorrect 4 ms 384 KB Output isn't correct
9 Incorrect 4 ms 384 KB Output isn't correct
10 Incorrect 4 ms 384 KB Output isn't correct
11 Incorrect 289 ms 15796 KB Output isn't correct
12 Incorrect 313 ms 13816 KB Output isn't correct
13 Incorrect 271 ms 13076 KB Output isn't correct
14 Incorrect 323 ms 13816 KB Output isn't correct
15 Incorrect 403 ms 17016 KB Output isn't correct
16 Incorrect 543 ms 19676 KB Output isn't correct
17 Incorrect 286 ms 16888 KB Output isn't correct
18 Incorrect 313 ms 16760 KB Output isn't correct
19 Incorrect 273 ms 16888 KB Output isn't correct
20 Incorrect 327 ms 16896 KB Output isn't correct