# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
426304 | apotosaurus | Job Scheduling (CEOI12_jobs) | C++11 | 629 ms | 13780 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define DEBUG false
#define cdbg if (!DEBUG) {} else cerr
#define INFILE "jobs.in"
#define OUTFILE "jobs.out"
int N,D,M;
vector<pair<int,int>> inpt;
void readInput(){
cin >> N >> D >> M;
inpt.resize(M);
for (int i = 0; i < M; i++){
cin >> inpt[i].first;
inpt[i].second = i+1;
}
sort(inpt.begin(), inpt.end());
}
bool works(int m){
int curDay = 1;
int curPerDay = 0;
for (int i = 0; i < M; i++){
if (inpt[i].first > curDay){
curDay = inpt[i].first;
curPerDay = 1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |