# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
441756 | Yuisuyuno | Job Scheduling (CEOI12_jobs) | C++14 | 364 ms | 24908 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// Author : Jad Isaac
// ID: jadDebugs
// TASK: -----
// LANG: C++
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define f first
#define s second
#define pii pair<int, int>
int n, d, m;
bool works(int robots, vector<pii> jobs)
{
int endT[robots] = {0};
int maxD = 0;
for (int i = 0, cur = 0; i < m; i++, cur++) {
if (cur == robots)
cur = 0;
// if our end time for this job is > than our start time for this job
// there will be delay
if (endT[cur] + 1 > jobs[i].f) {
endT[cur]++;
maxD = max(maxD, endT[cur] - jobs[i].f);
}
else
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |