제출 #433096

#제출 시각아이디문제언어결과실행 시간메모리
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; }

컴파일 시 표준 에러 (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...