| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 718219 | nihaddhuseynli | Robots (IOI13_robots) | C++14 | 1 ms | 308 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robots.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int putaway(int A, int B, int T, int X[], int Y[], int W[], int S[]) {
ll ans;
ll check[T+5];
memset(check,0,sizeof(check));
for(int i =0;i<A;i++)
{
for(int j=0;j<T;j++)
{
if(W[j]<X[i])
{
check[j]++;
}
}
}
for(int i =0;i<B;i++)
{
for(int j=0;j<T;j++)
{
if(S[j]<Y[i])
{
check[j]++;
}
}
}
for(int i =0;i<T;i++)
{
if(check[i]==0)
{
return -1;
}
}
if(A==1 && B==1)
{
ans=1;
}
else
{
ans=2;
}
return ans;
}
| # | 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... | ||||
