# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
141567 | ansol4328 | Robots (IOI13_robots) | C++11 | 2637 ms | 41332 KiB |
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<bits/stdc++.h>
using namespace std;
struct in
{
int w, s, idx;
in() {}
in(int v1, int v2, int v3) : w(v1), s(v2), idx(v3) {}
};
bool cmp1(const in &lhs, const in &rhs){ return lhs.w==rhs.w ? lhs.s>rhs.s : lhs.w<rhs.w; }
bool cmp2(const in &lhs, const in &rhs){ return lhs.s==rhs.s ? lhs.w>rhs.w : lhs.s<rhs.s; }
bool operator < (in lhs, in rhs)
{
return lhs.s<rhs.s;
}
int cx[50005], cy[50005];
bool check[1000005];
vector<in> arr1, arr2;
bool pos(int limit, int A, int B, int T, int X[], int Y[])
{
int idx=0, tot=T;
memset(cx,0,sizeof(cx));
memset(cy,0,sizeof(cy));
memset(check,false,sizeof(check));
Compilation message (stderr)
# | 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... |