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 | 29 |
| 30 | 31 |
Tags
- gs25
- hackerrank
- 더현대서울 맛집
- 맥북
- 프로그래머스
- Real or Not? NLP with Disaster Tweets
- ubuntu
- programmers
- github
- Baekjoon
- leetcode
- dacon
- 금융문자분석경진대회
- 우분투
- 프로그래머스 파이썬
- PYTHON
- AI 경진대회
- 캐치카페
- Docker
- SW Expert Academy
- 파이썬
- Kaggle
- ChatGPT
- 백준
- Git
- 자연어처리
- 데이콘
- 코로나19
- 편스토랑
- 편스토랑 우승상품
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 4072번 : Words (Python) 본문
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Words 입니다.
4072번: Words
Input will consist of a number of lines, each containing up to 250 characters. Words will be separated by single spaces, i.e. not by tabs, double spaces or other characters. Words may be of any length. Input will be terminated by a line containing a single
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def words_func(string):
words = [word[::-1] for word in string.split()]
return " ".join(words)
if __name__ == "__main__":
while True:
string = input()
if string == "#":
break
print(words_func(string=string))
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] 23810번 : 골뱅이 찍기 - ㅋ (Python) (0) | 2023.01.23 |
|---|---|
| [BaekJoon] 23811번 : 골뱅이 찍기 - ㅌ (Python) (0) | 2023.01.22 |
| [BaekJoon] 23812번 : 골뱅이 찍기 - 돌아간 ㅍ (Python) (0) | 2023.01.20 |
| [BaekJoon] 10093번 : 숫자 (Python) (0) | 2023.01.18 |
| [BaekJoon] 4134번 : 다음 소수 (Python) (0) | 2023.01.17 |
Comments