Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- dictionary
- Stack
- stateful
- was
- ORM
- Gunicorn
- Query
- utils
- codecov
- Programmers
- Django
- stack&que
- Unit Testing
- pytest
- Bruteforce
- TDD
- algorithm
- AWS
- postreSQL
- ws
- Q objects
- SQL
- stateless
- greedy
- HTTP 완벽 가이드
- Git
- permutations
- 백준
- combinations
- Python
Archives
- Today
- Total
목록완전탐색 (1)
해피 코딩!
[프로그래머스] 모의고사
link def solution(answers): answer = [] soopo_1 = [1, 2, 3, 4, 5,] soopo_2 = [2, 1, 2, 3, 2, 4, 2, 5] soopo_3 = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] soopo1 = 0 soopo2 = 0 soopo3 = 0 for index in range(len(answers)): if soopo_1[index % len(soopo_1)] == answers[index]: soopo1 += 1 if soopo_2[index % len(soopo_2)] == answers[index]: soopo2 += 1 if soopo_3[index % len(soopo_3)] == answers[index]: soopo3 +..
알고리즘
2020. 12. 12. 06:59