https://www.acmicpc.net/problem/2902

Description

Knuth-Morris-Pratt 과 같이 긴 형식을 KMP 와 같이 짧은 형식으로 바꾸는 문제.

Idea

간단하다. 그냥 대문자만 뽑아내면 된다...

Code

print("".join([c for c in input() if c.isupper()]))

+ Recent posts