프로그래머스 181889 n 번째 원소까지

1 개요[ | ]

프로그래머스 181889 n 번째 원소까지

2 C++[ | ]

#include <string>
#include <vector>

using namespace std;

vector<int> solution(vector<int> num_list, int n) {
    return vector<int>(num_list.begin(), num_list.begin()+n);
}