Skip to content

Commit 27e2d88

Browse files
committed
98차 3번 문제풀이
1 parent 9a74e33 commit 27e2d88

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

live9/test98/문제3/백유진.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def solution(prices):
2+
answer = []
3+
4+
for i in range(len(prices)):
5+
sec = 0
6+
for j in range(i+1, len(prices)):
7+
sec += 1
8+
if prices[i] > prices[j]:
9+
break
10+
answer.append(sec)
11+
return answer

0 commit comments

Comments
 (0)