프로그래밍/기타
프로그래머스 - 주식가격 (C#)
다람쥐와 포동포동이
2021. 1. 15. 19:55
728x90
반응형
using System;
public class Solution
{
public int[] solution(int[] prices)
{
var answer = new int[prices.Length];
for(int i =0; i<prices.Length; ++i)
{
int second = 0;
for(int j=i+1; j<prices.Length; ++j)
{
second++;
if(prices[i] > prices[j])
break;
}
answer[i]= second;
}
return answer;
}
}
RememberCook 9월 28일 정식 출시!
두번째 게임인 RememberCook이 출시되었습니다. 귀여운 캐릭터들이 나오는 간단한 게임이며 플레이어의 공간인지능력을 테스트하는 게임입니다. 아래 링크를 통해 다운 받으실 수 있으니 많은 관
chipmunk-plump-plump.tistory.com
반응형