Submission #433094

#TimeUsernameProblemLanguageResultExecution timeMemory
433094MonchitoPaint By Numbers (IOI16_paint)C++14
0 / 100
0 ms204 KiB
#include "paint.h" #include <cstdlib> using namespace std; string solve_puzzle(string s, vector<int> c) { string ret; int n = (int)s.size(); int k = (int)c.size(); for(int i=0; i<n; i++) ret[i] = '?'; 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:8:9: warning: unused variable 'k' [-Wunused-variable]
    8 |     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...