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
- codeup
- memory
- 일상
- 백준
- js to ts
- 정렬
- 코드업
- Redux
- 알고리즘
- Spring
- CPU 스케줄링
- 프로그래머스
- 리덕스장바구니
- react-redux
- 분할메모리할당
- C++
- OS
- Operating System
- 타입스크립트
- 파이썬
- web
- 기초100제
- 자료구조
- Java
- 공부
- 스프링
- 협업
- react
- 토이프로젝트
- error
Archives
- Today
- Total
목록2108 (1)
감자튀김 공장🍟
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bt7c4P/btrQ1eNgwWX/zAcd3KqxRDj9dJOwOhdJK0/img.png)
✔ 문제 ✔ 풀이 🍩 오답 코드 (로직 실수) import sys from collections import Counter input = sys.stdin.readline n = int(input()) nums = [] for _ in range(n): nums.append(int(input())) nums.sort() count = Counter(nums).most_common() count.sort(key=lambda x: -x[1]) median = 0 if len(count) > 1: median = count[1][1] else: median = count[0][1] print(round(sum(nums) / n)) print(nums[n//2]) print(median) print(max(nu..
Algorithm/BOJ
2022. 11. 12. 14:06