# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
469853 | goatgm03 | Job Scheduling (CEOI12_jobs) | C++17 | 619 ms | 33416 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define v vector
#define all(x) x.begin(),x.end()
#define pii pair<int,int>
#define f first
#define s second
const int mx=1e6+5;
int n,d,m;
pair<bool,v<v<int> > > possible(const v<pii>t,int mid){
int cur=0;
v<v<int> >res(n);
for(int day=1;day<=n;day++){
for(int j=0;j<mid;j++){
if(t[cur].f>day){
break;
}
if(t[cur].f+d<day)
return {false,res};
else if(t[cur].f+d>=day){
res[day-1].pb(t[cur].s);
cur++;
}
if(cur==m){
return {true,res};
}
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |