This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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... |