Submission #98510

#TimeUsernameProblemLanguageResultExecution timeMemory
98510pamajZoltan (COCI16_zoltan)C++14
0 / 140
219 ms20388 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 << ans << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...