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 <cstdlib>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
std::string solve_puzzle(std::string s, std::vector<int> c) {
int n=s.size();
string front=s;
string back=s;
for(int i=0;i<c[0];i++)
{
front[i]='X';
back[n-1-i]='X' ;
}
for(int i=0;i<n;i++)
{
if(back[i]=='.' || front[i]=='.' )
{
s[i]='?';
}
else s[i]='X';
}
return s;
}
# | 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... |