Submission #433096

#TimeUsernameProblemLanguageResultExecution timeMemory
433096MonchitoPaint By Numbers (IOI16_paint)C++14
7 / 100
1 ms204 KiB
#include "paint.h" #include <cstdlib> using namespace std; string solve_puzzle(string s, vector<int> c) { int n = (int)s.size(); int k = (int)c.size(); string ret=""; for(int i=0; i<n; i++) ret += "?"; for(int i=0; i<c[0]; i++) ret[i] = 'X'; int l=0; for(int i=c[0]; i<n; i++) { ret[l] = '?'; l++; } return ret; }

Compilation message (stderr)

paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:7:9: warning: unused variable 'k' [-Wunused-variable]
    7 |     int k = (int)c.size();
      |         ^
#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...