# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
153824 | Ruxandra985 | 로봇 (IOI13_robots) | C++14 | 1945 ms | 24224 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <iostream>
#include <algorithm>
#include "robots.h"
#include <vector>
#include <queue>
using namespace std;
int ok (int gmax ,int a , int b , int t , int y[],int s[],vector <int> v[50010] ){
int i,j;
/// pana acum am log 10^6
priority_queue <int> h,h2;
for (i=0;i<=a;i++){
for (j=0;j<v[i].size();j++)
h.push(s[v[i][j]]);
if (i!=a){
for (j=1;j<=gmax && !h.empty();j++)
h.pop(); /// cele mai mari gmax sizeuri le pun aici
}
}
/// in h au ramas cele pe care trebuie tu sa le pui la robotii mici
//if (gmax == 23)
// printf ("%d ",h.size());
for (i=b-1;i>=0;i--){
if (h.empty())
return 1;
if (h.top() > y[i])
return 0;
컴파일 시 표준 에러 (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... |