Submission #98509

#TimeUsernameProblemLanguageResultExecution timeMemory
98509pamajZoltan (COCI16_zoltan)C++14
0 / 140
228 ms20316 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 %= ans; } cout << ans << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...