본 블로그는 비상업적, 비영리적 용도의 학업만을 위해 글을 게시합니다.
#include <string>
#include <vector>
using namespace std;
vector<string> solution(int n, vector<int> arr1, vector<int> arr2) {
char line[17] = {0};
vector<string> answer;
for(int i = 0; i < n; i++)
{
int now = arr1[i] | arr2[i];
for(int j = n - 1; j >= 0; j--)
{
line[j] = (now % 2) ? '#' : ' ';
now >>= 1;
}
string line_str(line, n);
answer.push_back(line_str);
}
return answer;
}