Submission #98511

# Submission time Handle Problem Language Result Execution time Memory
98511 2019-02-23T19:51:34 Z pamaj Zoltan (COCI16_zoltan) C++14
14 / 140
210 ms 20252 KB
#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 time Memory Grader output
1 Incorrect 3 ms 384 KB Output isn't correct
2 Incorrect 3 ms 384 KB Output isn't correct
3 Incorrect 2 ms 256 KB Output isn't correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 2 ms 384 KB Output is correct
6 Incorrect 2 ms 256 KB Output isn't correct
7 Incorrect 3 ms 384 KB Output isn't correct
8 Incorrect 3 ms 384 KB Output isn't correct
9 Incorrect 3 ms 356 KB Output isn't correct
10 Incorrect 4 ms 384 KB Output isn't correct
11 Runtime error 112 ms 20088 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 120 ms 20104 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 152 ms 20088 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 195 ms 20252 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 167 ms 20188 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 210 ms 20164 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 142 ms 18536 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 126 ms 18516 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Runtime error 106 ms 18424 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 120 ms 18444 KB Execution killed with signal 11 (could be triggered by violating memory limits)