# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
444900 | ala2 | Handcrafted Gift (IOI20_gift) | C++14 | 151 ms | 20108 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 <iostream>
using namespace std;
int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x)
{
string s(n,'R');
if(x[0]==1)
{
craft(s);
return 1;
}
if(x[0]==2)
{
for(int i=0; i<r; i++)
{
if(a[i]==b[i])
{
return 0;
}
}
for(int i=1; i<n; i+=2)
{
s[i]='B';
}
craft(s);
return 1;
}
}
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... |