프로그래밍/기타
2021. 1. 16.
프로그래머스 - 기능개발 (C#)
using System; using System.Collections.Generic; using System.Linq; public class Solution { public int[] solution(int[] progresses, int[] speeds) { var distributeList = new List(); int complete = 100; int distributeIndex = 0; double prevEndDay = -1; for(int i =0; i prevEndDay) { prevEndDay = endDay; distributeIndex = distributeList.Count; distributeList.Add(1); continue; } distributeList[distribu..