Submission #98509

# Submission time Handle Problem Language Result Execution time Memory
98509 2019-02-23T19:49:40 Z pamaj Zoltan (COCI16_zoltan) C++14
0 / 140
228 ms 20316 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 %= ans;
	}

	cout << ans << "\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Output isn't correct
2 Incorrect 2 ms 384 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 256 KB Output isn't correct
6 Incorrect 3 ms 384 KB Output isn't correct
7 Incorrect 2 ms 384 KB Output isn't correct
8 Incorrect 3 ms 356 KB Output isn't correct
9 Incorrect 3 ms 432 KB Output isn't correct
10 Incorrect 4 ms 384 KB Output isn't correct
11 Runtime error 132 ms 20044 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 135 ms 20192 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 160 ms 20084 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 228 ms 20044 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 181 ms 20316 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 166 ms 20060 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 110 ms 18488 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 101 ms 18444 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Runtime error 120 ms 18584 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 148 ms 18524 KB Execution killed with signal 11 (could be triggered by violating memory limits)