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
- mmdetectionv3
- 자료구조끝판왕문제
- objectdetection
- clibration
- 프로그래머스
- layernormalization
- cmp_to_key
- Optimizer
- 중복순열
- ImageClassification
- focalloss
- DataAugmentation
- BatchNormalization
- pytorch
- 우선순위큐
- 힙
- 네이버 ai 부스트캠프
- autograd
- noiserobustness
- l2penalty
- labelsmoothingloss
- labelsmoothing
- f1loss
- fasterRCNN
- inference
- 네이버AI부스트캠프
- ComputerVision
- 정렬
- Focal Loss
- 밑바닥부터 시작하는 딥러닝
Archives
- Today
- Total
목록프로그래머스 (1)
HealthyAI

5개 밖에 안되는 알파벳이 주어졌으므로 itertools 내장 모듈의 중복 순열 product를 이용해본다. from itertools import product def solution(word): answer = 0 lst = [] for i in range(1, 6): for j in product(['A', 'E', 'I', 'O', 'U'], repeat = i): lst.append(''.join(j)) lst.sort() return lst.index(word) + 1
Coding test/프로그래머스
2023. 1. 16. 15:34