# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1016262 | abdelhakim | Job Scheduling (CEOI12_jobs) | C++14 | 214 ms | 10836 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |