| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 675552 | brijeshSiwach | Bigger segments (IZhO19_segments) | Cpython 3 | 12 ms | 2772 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
def minimumOperations(arr):
n = len(arr)
dp = [0] * n
for i in range(1, n):
if arr[i] >= arr[i-1]:
dp[i] = dp[i-1]
else:
dp[i] = min(dp[i-2] + 1, dp[i-3] + 1)
return dp[n-1]
# Read the array from the user
n=input()
arr = list(map(int, input().split()))
# Print the result
print(minimumOperations(arr))| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
