# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
205736 | ics0503 | Kitchen (BOI19_kitchen) | C++17 | 162 ms | 28024 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<queue>
using namespace std;
short D[313][91919];
vector<int>Q[313];
vector<int>V[91919];
int A[313], B[313], S[313], tmp[313];
bool simul(vector<int>B, int n, int k) {
priority_queue<int>H;
int bSum = 0;
for (int v : B) H.push(v);
for (int i = n; i >= 1; i--) {
// int g = A[i] - k;
for (int j = 0; j < k; j++) {
tmp[j] = H.top() - 1; H.pop();
if (tmp[j] < 0)
return false;
}
for (int j = 0; j < k; j++)H.push(tmp[j]);
}
return true;
}
bool sort_a(int a, int b) {
return a < b;
}
int main() {
int n, m, k, i, j, aSum = 0; scanf("%d%d%d", &n, &m, &k);
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |