728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181889
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int[] num_list, int n) {
int[] answer = new int[n];
for(int i=0; i<n; i++){
answer[i] = num_list[i];
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | Lv.0] 원소들의 곱과 합 (0) | 2023.08.13 |
---|---|
[프로그래머스 | Lv.0] flag에 따라 다른 값 반환하기 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 정수 부분 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 짝수는 싫어요 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 옷가게 할인 받기 (0) | 2023.08.13 |