# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
441765 | Yuisuyuno | Job Scheduling (CEOI12_jobs) | C++14 | 500 ms | 24992 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//Nguyen Huu Hoang Minh
#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
#define N 1000001
#define ii pair<int, int>
#define vi vector<int>
using namespace std;
const int minf = -1e9;
vector<int> res[100012];
int n, m, d;
bool ok(int machine, vector<ii> a){
int delays=0;
int en[machine] = {0};
for(int i=0, cur=0; i<m; i++, cur++){
if (cur==machine) cur=0;
if (en[cur] + 1 > a[i].fi){
en[cur]++;
delays = max(delays,en[cur]-a[i].fi);
}
else en[cur] = a[i].fi;
}
return delays <= d;
}
int main()
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |