Submission #319687

#TimeUsernameProblemLanguageResultExecution timeMemory
319687northlakeHandcrafted Gift (IOI20_gift)C++17
15 / 100
162 ms19684 KiB
#include<gift.h> #include<bits/stdc++.h> using namespace std; int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x) { // check requirement has length > 1 for (int i = 0; i < r; i++) { if (a[i] == b[i]) { return 0; } } // build alternating string string s {}; if (n%2) s+= 'B'; for (int i = 0; i < n/2; i++) { s += 'R'; s += 'B'; } craft(s); return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...