Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 금융문자분석경진대회
- PYTHON
- Baekjoon
- Kaggle
- SW Expert Academy
- 프로그래머스
- ChatGPT
- programmers
- 편스토랑 우승상품
- Docker
- gs25
- 데이콘
- Real or Not? NLP with Disaster Tweets
- 프로그래머스 파이썬
- 더현대서울 맛집
- 편스토랑
- 백준
- leetcode
- 파이썬
- 맥북
- 우분투
- ubuntu
- Git
- dacon
- AI 경진대회
- 코로나19
- github
- 캐치카페
- hackerrank
- 자연어처리
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 6840번 : Who is in the middle? (Python) 본문
728x90
반응형
코딩 1일 1문제! 오늘의 문제는 백준의 Who is in the middle? 입니다.
6840번: Who is in the middle?
In the story Goldilocks and the Three Bears, each bear had a bowl of porridge to eat while sitting at his/her favourite chair. What the story didn’t tell us is that Goldilocks moved the bowls around on the table, so the bowls were not at the right seats
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def who_is_in_the_middle(bear_bowl_list):
return sorted(bear_bowl_list)[1]
if __name__ == "__main__":
bear_bowl_list = []
for _ in range(3):
bowl = int(input())
bear_bowl_list.append(bowl)
print(who_is_in_the_middle(bear_bowl_list=bear_bowl_list))
GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07
1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.
github.com
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 5358번 : Football Team (Python) (0) | 2022.12.20 |
---|---|
[BaekJoon] 26489번 : Gum Gum for Jay Jay (Python) (0) | 2022.12.18 |
[BaekJoon] 26307번 : Correct (Python) (0) | 2022.12.15 |
[BaekJoon] 2033번 : 반올림 (Python) (0) | 2022.12.14 |
[BaekJoon] 25801번 : Odd/Even Strings (Python) (0) | 2022.12.13 |
Comments