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

Jmnote (토론 | 기여)님의 2023년 9월 17일 (일) 21:16 판

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);
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}