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
- csv x range
- Python Imaging Library
- 프로그래머스
- Climbing Stairs
- 프로그래머스 체육복
- apt clean
- apt autoremove
- 걸쳐서 그림 넣기
- python3
- LaTeX figure
- linux bash
- Leetcode 70
- vim set noshowmatch
- vim 찾아 바꾸기
- gnuplot csv
- vi/vim commands
- VirtualBox
- git commit message
- vim 괄호 비활성화
- Resolution Changing
- linux prompt color
- tensorflow model load
- without nohup.out
- 프로그래머스 구명보트
- url reference
- Leetcode 121
- latex 첨자
- 프로그래머스 실패율
- vim 치환
- vi/vim 명령어
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