이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robots.h"
//#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
const int N=1e4+5;
int putaway(int wet, int smt, int t1, int we[], int sm[], int wt[], int st[]) {
sort(we,we+wet);
sort(sm,sm+smt);
if(wt[0]>we[wet-1]||wt[1]>we[wet-1]) return -1;
if(st[0]>sm[smt-1]||st[1]>sm[smt-1]) return -1;
if(wet&&smt){
if(we[wet-1]>=wt[0]){
if(sm[smt-1]>=st[1])
return 1;
}
if(we[wet-1]>=wt[1]){
if(sm[smt-1]>=st[0])
return 1;
}
}
return 2;
}
| # | 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... |