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<bits/stdc++.h>
using namespace std;
int a[1000005];
string solve_puzzle(string s, vector<int> c) {
int k = c[0];
for(int i = 0; i < k; i++) a[i]++;
for(int i = (int)s.size(); i >= (int)s.size()-k; i--) a[i]++;
string sss;
for(int i = 0; i < (int)s.size(); i++) {
if(a[i] == 2) sss += 'X';
else sss += '?';
}
return sss;
}
# | 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... |