[백준1152_파이썬(python)] - 단어의 개수

경이·2021년 7월 5일
0

🔴 문제

단어의 개수


🟡 Sol

s = input()
cnt = 0
for i in s.split():
    cnt = cnt + 1
print(cnt) 

🟢 풀이

까다로운 문제라서 다른사람의 풀이를 참고했다.


🔵 Ref

https://wook-2124.tistory.com/257

profile
이사중입니다!🌟https://velog.io/@devkyoung2

0개의 댓글

관련 채용 정보