# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
65367 | yp155136 | Robots (IOI13_robots) | C++14 | 2432 ms | 13700 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robots.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 1000006;
int x[N],y[N],w[N],s[N];
typedef pair<int,int> pii;
#define F first
#define S second
const int INF = 2e9 + 7;
int putaway(int A, int B, int T, int X[], int Y[], int W[], int S[]) {
int n=T,a=A,b=B;
for (int i=0;A>i;i++) x[i] = X[i];
if (a) sort(x,x+a);
for (int i=0;B>i;i++) y[i] = Y[i];
if (b) sort(y,y+b);
//cout << "(T, a, b) = " << "( " << T << " , " << a << " , " << b << " ) " <<endl;
vector<pii> v;
for (int k=0;T>k;k++)
{
if (a>0 && W[k] >= x[a-1] && b==0) return -1;
if (b>0 && S[k] >= y[b-1] && a==0) return -1;
if (a && b)
{
if (W[k] >= x[a-1] && S[k] >= y[b-1]) return -1;
}
v.push_back(make_pair(W[k],S[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... |