Submission #610949

#TimeUsernameProblemLanguageResultExecution timeMemory
610949strange420Paint By Numbers (IOI16_paint)C++14
7 / 100
1 ms312 KiB
#include "paint.h" #include <bits/stdc++.h> #include <cstdlib> using namespace std; std::string solve_puzzle(std::string s, std::vector<int> c) { string ans; int n = s.size(), k = c[0]; for (int i=0; i<n; i++) ans += '?'; for (int i=0; i<2*k-n; i++) ans[i+n-k] = 'X'; return ans; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...