Submission #433464

#TimeUsernameProblemLanguageResultExecution timeMemory
433464JUANDI321Handcrafted Gift (IOI20_gift)C++17
15 / 100
177 ms20084 KiB
#include "gift.h" #include <vector> using namespace std; int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x) { string s(n, 'R'); for(int i = 0; i<n; i++) { if(i%2 == 0)s[i]='B'; } for(int i = 0; i<r; i++) { if(a[i]==b[i])return 0; } 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...