# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
433311 | Tiago_Marques | Handcrafted Gift (IOI20_gift) | C++17 | 261 ms | 27152 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 "gift.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> ii;
#define REP(i, a, b) for (ll i=a; i<b; i++)
#define fs first
#define sd second
#define pb push_back
#define mp make_pair
int construct(int n, int r, std::vector<int> a, std::vector<int> b, std::vector<int> x)
{
vector<ii> same;
vector<ii> different;
string ans;
REP(i, 0, r)
{
if (x[i] == 1)
same.pb (mp(a[i], b[i]));
else
different.pb (mp(a[i], b[i]));
}
sort (same.begin(), same.end());
sort (different.begin(), different.end());
int iterador = 1;
ans += "R";
# | 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... |