Submission #98512

#TimeUsernameProblemLanguageResultExecution timeMemory
98512pamajZoltan (COCI16_zoltan)C++14
0 / 140
543 ms19676 KiB
#include <bits/stdc++.h> using namespace std; int v[200010]; 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 *= pow(2, mp[u]); ans %= (1000000007); } cout << st.size() << " " << ans << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...