Submission #92232

#TimeUsernameProblemLanguageResultExecution timeMemory
92232kitsu_hiPaint By Numbers (IOI16_paint)C++14
7 / 100
2 ms504 KiB
#include <bits/stdc++.h> #include "paint.h" using namespace std; string solve_puzzle(string s, vector<int> c) { int le = s.size(); int mid = 2 * c[0] - le; if ( mid < 0 ) mid = 0; int bnd = ( le - mid ) / 2; for ( int i = 0; i < bnd; i++ ) { s[i] = '?'; } for ( int i = bnd; i < bnd + mid; i++ ) { s[i] = 'X'; } for ( int i = bnd + mid; i < le; i++ ) { s[i] = '?'; } return s; }
#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...