# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
427018 | vincentpikachu20 | Paint By Numbers (IOI16_paint) | C++17 | 1 ms | 204 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 "paint.h"
#include <bits/stdc++.h>
#define int long long
using namespace std;
string solve_puzzle(string s, vector<signed> c) {
int n = s.size(), k = c.size();
string ans = "";
if(n >= 2*c[0]) for(int i = 0; i < n; i ++) ans += '?';
else{
for(int i = 0; i < n-c[0]; i ++) ans += '?';
for(int i = 0; i < 2*c[0]-n; i ++) ans += 'X';
for(int i = 0; i < n-c[0]; i ++) ans += '?';
}
return ans;
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |