일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 더현대서울 맛집
- 데이콘
- AI 경진대회
- gs25
- 맥북
- 프로그래머스
- 캐치카페
- PYTHON
- Baekjoon
- dacon
- 백준
- 금융문자분석경진대회
- 파이썬
- ChatGPT
- Real or Not? NLP with Disaster Tweets
- programmers
- 편스토랑 우승상품
- hackerrank
- github
- 편스토랑
- leetcode
- Git
- Kaggle
- 코로나19
- 자연어처리
- 프로그래머스 파이썬
- SW Expert Academy
- Docker
- ubuntu
- 우분투
- Today
- Total
목록
반응형
전체 글 (1653)
솜씨좋은장씨
코딩 1일 1문제! 오늘의 문제는 백준의 Mathematics 입니다. 26545번: Mathematics A mathematician has stolen your calculator! Luckily, you know how to code and can write a program that adds together numbers. Write a program that adds together a list of integers. www.acmicpc.net 👨🏻💻 코드 ( Solution ) def mathematics(number_list): return sum(number_list) if __name__ == "__main__": number_list = [] for _ in range(int(inp..
코딩 1일 1문제! 오늘의 문제는 백준의 Football Team 입니다. 5358번: Football Team Print the same list of names with every ‘i’ replaced with an ‘e’, every ‘e’ replaced with an ‘i’, every ‘I’ replaced with an ‘E’, and every ‘E’ replaced with an ‘I’. www.acmicpc.net 👨🏻💻 코드 ( Solution ) def football_team(name): change_word_dict = {"e": "i", "i": "e", "E": "I", "I": "E"} new_name_list = [change_word_dict[word] if word..
코딩 1일 1문제! 오늘의 문제는 백준의 Gum Gum for Jay Jay 입니다. 26489번: Gum Gum for Jay Jay You are lost in the museum and keep walking by a giant rock head that says “gum gum for jay jay” each time you walk by. Print out the number of times you have walked by the giant rock head after reading in the data file. www.acmicpc.net 👨🏻💻 코드 ( Solution ) def gum_gum_for_jay_jay(): answer = 0 while True: try: gum_gum =..
코딩 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(bea..
코딩 1일 1문제! 오늘의 문제는 백준의 Correct 입니다. 26307번: Correct Your best friend, Charlie, participated Taiwan Online Programming Contest (TOPC), which is a preliminary contest of the International Collegiate Programming Contest (ICPC). According to the rules, teams are ranked according to the most problems solved. Tea www.acmicpc.net 👨🏻💻 문제 풀이 문제를 풀어서 제출한 시간이 주어지면 09시부터 문제를 풀기 시작했다고 하였을때 문제를 푸는데 걸린 총 시간을..
코딩 1일 1문제! 오늘의 문제는 백준의 반올림 입니다. 👨🏻💻 코드 ( Solution ) def baekjoon_round(N): compare_num = 10 while N > compare_num: if N % compare_num >= compare_num // 2: N += compare_num N -= (N % compare_num) compare_num *= 10 return N if __name__ == "__main__": N = int(input()) print(baekjoon_round(N=N)) GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07 1일 1문제 since 2020.02.07. Contribute to SOM..
코딩 1일 1문제! 오늘의 문제는 백준의 Odd/Even Strings 입니다. 25801번: Odd/Even Strings Consider a string containing lowercase letters only. We call the string odd if every letter in the string appears an odd number of times. Similarly, we call the string even if every letter in the string appears an even number of times. Given a string, dete www.acmicpc.net 👨🏻💻 문제 풀이 collections 의 Counter를 활용하여 문자열 속 각 문자들의 빈도수..
코딩 1일 1문제! 오늘의 문제는 백준의 SciComLove (2022) 입니다. 24937번: SciComLove (2022) 귀여운 아기 리프가 가장 좋아하는 문자열은 "SciComLove"(따옴표 제외)입니다. 귀여운 아기 리프는 아래 과정을 반복하며 문자열을 가지고 놀고 있습니다. 문자열의 가장 첫 문자를 떼어낸 뒤, 문 www.acmicpc.net 👨🏻💻 문제 풀이 입력 받은 숫자만큼 앞의 문자를 떼어내어 뒤로 붙였을때 나오는 결과물을 구하는 문제입니다. 반복문을 돌면서 문제를 풀어도 되겠지만 입력 받는 숫자의 범위가 0부터 10의 9승 즉 1,000,000,000 까지이므로 그냥 반복문을 돌리게 되면 시간초과가 발생할 수도 있습니다. 그럼 어떻게 풀어야하는가! 앞의 문자를 떼어 뒤에 붙이는 ..