| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 309327 | amunduzbaev | 로봇 (IOI13_robots) | C++14 | 1 ms | 384 KiB |
이 제출은 이전 버전의 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... | ||||
