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 |
Tags
- linux prompt color
- tensorflow model load
- Climbing Stairs
- Leetcode 70
- 프로그래머스
- 프로그래머스 실패율
- vim set noshowmatch
- 프로그래머스 체육복
- Resolution Changing
- gnuplot csv
- csv x range
- Leetcode 121
- linux bash
- vim 치환
- 걸쳐서 그림 넣기
- vim 괄호 비활성화
- apt autoremove
- git commit message
- 프로그래머스 구명보트
- LaTeX figure
- without nohup.out
- latex 첨자
- apt clean
- VirtualBox
- vi/vim commands
- Python Imaging Library
- url reference
- vim 찾아 바꾸기
- vi/vim 명령어
- python3
Archives
- Today
- Total
목록프로그래머스 실패율 (1)
기억노트
[Programmers/Python3] 실패율
Code def solution(N, stages): answer = [] n = len(stages) for i in range(1, N + 1): cnt = stages.count(i) rate = cnt / n if n != 0 else 0 answer.append([i, rate]) n -= cnt answer.sort(key = lambda x:x[1], reverse = True) answer = [i[0] for i in answer] return answer Result 정확성 테스트 테스트 1 〉 통과 (0.01ms, 10.2MB) 테스트 2 〉 통과 (0.14ms, 10.3MB) 테스트 3 〉 통과 (70.61ms, 10.5MB) 테스트 4 〉 통과 (379.54ms, 10.9MB) 테..
Coding Test 준비/Programmers
2022. 1. 17. 17:37