# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
293335 | shrek12357 | Paint By Numbers (IOI16_paint) | C++14 | 0 ms | 0 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 <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#include <climits>
#include <cmath>
#include <fstream>
#include <queue>
using namespace std;
string solve_puzzle(string s, int c[]) {
string ans = "";
for (int i = 0; i < s.size(); i++) {
ans += "?";
}
for (int i = s.size() - c[0]; i < c[0]; i++) {
ans[i] = 'X';
}
return ans;
}