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 |
Tags
- codingtest
- cos pro
- 분할정복
- vuejs
- Python
- 백준
- android
- 코테
- 동적계획법과최단거리역추적
- DART
- cos pro 1급
- 안드로이드
- BAEKJOON
- django
- 안드로이드스튜디오
- 파이썬
- Algorithm
- AndroidStudio
- 동적계획법
- DFS와BFS
- 코드품앗이
- 코딩테스트
- issue
- cos
- 개발
- 알고리즘
- Flutter
- DFS
- C++
- Vue
Archives
- Today
- Total
목록cos 몬스터 잡기 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bGITBK/btruAr9Qf8V/j8GJZeGGxtGhCRgrDqxQmK/img.png)
문제 유형 코딩 난이도 hard Note 1. '가능 강력한 아군이 이길 수 있는 적군의 수가 최대로 이길 수 있는 적군의 수'라는 것을 아는 것이 매우 중요. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(enemies, armies): answer = 0 enemies.sort(reverse=True) armies.sort(reverse=True) for i in armies: n = 0 for j in enemies: if i >= j: n += 1 answer = max(n, answer) return answer enemies1 = [1, 4, 3] armies1 = [1, 3] ret1 = solutio..
Algorithm/COS
2022. 2. 28. 17:04