Submission #194132

#TimeUsernameProblemLanguageResultExecution timeMemory
194132juanmartinez111Paint By Numbers (IOI16_paint)C++14
7 / 100
12 ms376 KiB
#include "paint.h" #include <cstdlib> using namespace std; std::string solve_puzzle(std::string s, std::vector<int> c) { string a=""; for(int i=0;i<s.size();i++)a+="X"; int cnt=s.size()-1; for(int i=0;i<s.size()-c[0];i++){ a[i]='?'; a[cnt]='?'; cnt--; } return a; }

Compilation message (stderr)

paint.cpp: In function 'std::__cxx11::string solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:7:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++)a+="X";
                 ~^~~~~~~~~
paint.cpp:9:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size()-c[0];i++){
#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...