# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
50312 | faishol27 | Job Scheduling (CEOI12_jobs) | C++14 | 635 ms | 13988 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>
using namespace std;
const int MAXN = 1e5+5;
const int MAXM = 1e6+5;
struct job{
int ind, day;
};
int N, D, M, mesin_ans = MAXM;
job data[MAXM];
bool isJobCompleted(int mesin){
int pos = 0;
for(int i=1;i<=N;i++){
for(int j=0;j < mesin && data[pos].day <= i && pos < M;j++){
if(i > data[pos].day+D) return 0;
pos++;
}
}
return 1;
}
void print_ans(){
int pos = 0;
cout << mesin_ans << endl;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |