프로그래머스/Lv.0
[프로그래머스 C#] 배열 원소의 길이
suniverse
2023. 7. 19. 22:02
💻 나의 코드
using System;
public class Solution {
public int[] solution(string[] strlist) {
int[] answer = new int[strlist.Length];
for(int i = 0; i < strlist.Length; i++)
{
answer[i] += strlist[i].Length;
}
return answer;
}
}