Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- DFS와BFS
- 개발
- BAEKJOON
- DFS
- issue
- android
- Python
- codingtest
- 안드로이드
- Flutter
- vuejs
- Algorithm
- 코딩테스트
- django
- cos pro 1급
- 코드품앗이
- 백준
- 코테
- 파이썬
- DART
- 동적계획법
- 알고리즘
- 분할정복
- 동적계획법과최단거리역추적
- C++
- docker
- cos
- AndroidStudio
- cos pro
- 안드로이드스튜디오
Archives
- Today
- Total
목록cos 1급 3차 9번 python (1)
Development Artist

문제 유형 한줄 수정 난이도 easy Note Nothing Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(revenue, k) : answer = 0 rsum = sum(revenue[0:k]) answer = rsum for i in range(len(revenue)) : rsum = sum(revenue[i:k+i]) if answer < rsum : answer = rsum return answer revenue1 = [1, 1, 9, 3, 7, 6, 5, 10] k1 = 4 ret1 = solution(revenue1, k1) print("solution 함수의 반환 값은", ret1, "입니다.") re..
Algorithm/COS
2022. 2. 25. 12:46