#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 << ans << "\n";
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
256 KB |
Output isn't correct |
2 |
Incorrect |
3 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 |
256 KB |
Output isn't correct |
6 |
Incorrect |
5 ms |
384 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 |
384 KB |
Output isn't correct |
10 |
Incorrect |
4 ms |
384 KB |
Output isn't correct |
11 |
Runtime error |
101 ms |
20188 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
12 |
Runtime error |
109 ms |
20088 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
13 |
Runtime error |
117 ms |
20088 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
14 |
Runtime error |
177 ms |
20192 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
15 |
Runtime error |
219 ms |
20148 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
16 |
Runtime error |
213 ms |
20388 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
17 |
Runtime error |
121 ms |
18592 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
18 |
Runtime error |
128 ms |
18680 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
19 |
Runtime error |
117 ms |
18424 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
20 |
Runtime error |
133 ms |
18504 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |