문제 코드 #include #include #include using namespace std; vector solution(vector arr, vector queries) { vector answer; for (vector query : queries) { for (int i = query[0]; i
문제 코드 #include #include using namespace std; vector solution(vector num_list, int n) { vector answer; for (int i = 0; i < num_list.size(); i += n) { answer.emplace_back(num_list[i]); } return answer; }