Submission #1016262

#TimeUsernameProblemLanguageResultExecution timeMemory
1016262abdelhakimJob Scheduling (CEOI12_jobs)C++14
0 / 100
214 ms10836 KiB
#include <bits/stdc++.h> #define mod 1000000007LL #define inf 1e17 #define ll long long using namespace std; void printvec(vector<int> vec) { for (auto &&e : vec) { cout << e << ' '; } cout << endl; } int main() { ll n, m; double d; cin >> n >> d >> m; vector<ll> a(m); map<ll,ll> frq; ll maxe = 0; for (int i = 0; i < m; i++) { cin >> a[i]; frq[a[i]]++; maxe = max(frq[a[i]], maxe); } cout << ceil(maxe/d) << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...