728x90
반응형

split을 사용해서 입력을 분리하고 그 길이를 출력하면 된다.

print(len(input().split()))

728x90
반응형

+ Recent posts