# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
145257 | faremy | Robots (IOI13_robots) | C++14 | 2802 ms | 40392 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 <algorithm>
#include <vector>
#include <queue>
struct Item
{
Item(int l, int o, int c) : limit(l), othLim(o), carrying(c) {}
int limit, othLim, carrying;
bool operator <(const Item &other) const
{
return (other.carrying < carrying);
}
};
const int MAXN = 1e6;
const int MAXA = 5e4;
int weight[MAXN], size[MAXN];
int weightLimit[MAXA];
int sizeLimit[MAXA];
std::vector<Item> toSort;
std::priority_queue<Item> sorting;
std::vector<Item> given[MAXA];
std::vector<Item> unsorted;
# | 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... |