이거도 다시 풀기 !!!
💻
using System;
public class Solution {
public int solution(int[] numbers, int k) {
int answer = numbers[2 * (k - 1) % numbers.Length];
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 이어 붙인 수 (0) | 2023.09.11 |
---|---|
[프로그래머스 C#] 커피 심부름 (1) | 2023.09.05 |
[프로그래머스 C#] 7의 개수 (0) | 2023.09.05 |
[프로그래머스 C#] 컨트롤 제트 (0) | 2023.09.05 |
[프로그래머스 C#] A로 B 만들기 (0) | 2023.09.05 |