그림 확대 : 문제 링크
#include <string>
#include <vector>
using namespace std;
vector<string> solution(vector<string> picture, int k) {
vector<string> answer;
for(int i = 0; i < picture.size(); ++i) {
string temp;
for(int j = 0; j < picture[i].size(); ++j) {
for(int l = 0; l < k; ++l) {
temp += picture[i][j];
}
}
for(int j = 0; j < k; ++j) {
answer.push_back(temp);
}
}
return answer;
}