이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robots.h"
#include <bits/stdc++.h>
#define ll long long
#define endl '\n'
//#define f first
//#define s second
using namespace std;
int putaway(int a , int b , int t , int x[] , int y[] , int w[] , int s[])
{
vector<int> v;
for (int i=0; t>i; i++)
{
v.push_back(w[i]);
}
sort(v.begin() , v.end());
sort(x , x + a);
int ans = 0;
while (!v.empty())
{
bool f = 0;
int j = a - 1;
for (int i=v.size()-1; i>=0; i--)
{
if (x[j] > v[i])
{
v.pop_back();
f = 1;
}
}
ans++;
if (f == 0)
{
ans = -1;
break;
}
}
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... |