728x90
반응형
https://programmers.co.kr/learn/courses/30/lessons/86051
using System;
using System.Linq;
public class Solution {
public int solution(int[] numbers) {
int answer = 0;
for (int i = 0; ++i < 10;)
answer += i;
answer -= numbers.Sum();
return answer;
}
}
반응형
'프로그래머스_C# > Level_1' 카테고리의 다른 글
[프로그래머스 C#] 8주차_최소직사각형 (0) | 2021.10.21 |
---|---|
[프로그래머스 C#] 나머지가 1이 되는 수 찾기 (0) | 2021.10.20 |
[프로그래머스 C#] 6주차_복서 정렬하기 (0) | 2021.10.18 |
[프로그래머스 C#] Level 1 Tips (0) | 2021.09.11 |
[프로그래머스 C#] 로또의 최고 순위와 최저 순위 (0) | 2021.09.10 |