You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importsysreadl=sys.stdin.readlinedeff():
""" 값이 큰 것부터 심어야 함 -> 정렬하자 (역순) 정렬 후 index i, value ti라고 할 때 1+max(i+ti)를 출력 (가장 오래 걸리는 묘목까지 기다려야 하므로) """n=int(readl())
nums=list(map(int, readl().split()))
nums.sort(reverse=True)
maxx=nums[0]
foriinrange(n):
ifi+nums[i] >maxx:
maxx=i+nums[i]
print(2+maxx)
f()
Self-feedback
구조적 접근: 문제를 추상화하여 구조적으로 접근했는가?
사고력: 알고리즘을 완전히 이해했는가? (충분한 사고력을 가졌는가?)
구현력: 알고리즘을 신속, 정확하게 구현했는가?
The text was updated successfully, but these errors were encountered:
Problem link
https://www.acmicpc.net/problem/9237
Problem abstraction
Design(Plan) algorithm
Algorithm idea
Pseudo-code
Validate algorithm
Impl
Self-feedback
구조적 접근: 문제를 추상화하여 구조적으로 접근했는가?
사고력: 알고리즘을 완전히 이해했는가? (충분한 사고력을 가졌는가?)
구현력: 알고리즘을 신속, 정확하게 구현했는가?
The text was updated successfully, but these errors were encountered: