¿La página no carga? Prueba haciendo clic aquí.
Placeholder

#1743

welcome to the hancom 1s - MB

Problemas

임의의 문자열 S가 입력되었을 때, S의 부분서열 중에서 "welcome to the hancom"(빈칸 포함, 큰 따옴표 제외)라는 부분 서열이 총 몇 개 있는지 출력하는 프로그램을 작성하라.


Entrada

최대 500자 이하의 문자열 S가 입력되며, 문자열 S는 알파벳 소문자 그리고 공백으로 이뤄져있다.


Salida

S의 부분서열 중에서 "welcome to the hancom"과 같은 부분 서열이 총 몇 개가 있는지를 출력한다. 숫자가 너무 클 수 있기 때문에 개수의 마지막 네 개의 자리만 출력한다.


Ejemplo

welcome to the hancoms
0001

Debes iniciar sesión para escribir código.