시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB26416214462.338%

문제

The Society for Prevention of Profanity on the Internet has observed a growing number of chat lines on the World Wide Web. A chat line allows a Web user to type lines of text which are transmitted to all other users. The Society is concerned about the number of fourletter words being transmitted by these chat lines and has proposed the mandatory use of software to remove all four-letter words from every transmission. Your job is to write the software to do this removal.

입력

The input to your program consists of an integer, n, on a line by itself, followed by n lines of text. Each line of text contains words separated by spaces. Each word consists of letters of the alphabet and exactly one space separates adjacent words. There are no spaces before the first word or after the last word on each line. Lines do not exceed 80 characters in length.

출력

The output from your program should consist of the n lines of text, with each four-letter word replaced by four asterisks. The lines should be separated by one blank line.

예제 입력 1

2
The quick brown fox jumps over the lazy dog
Now is the time for all good people to come to the aid of the party

예제 출력 1

The quick brown fox jumps **** the **** dog 

Now is the **** for all **** people to **** to the aid of the party 

출처

Olympiad > Canadian Computing Competition & Olympiad > 1998 > CCC 1998 1번

  • 잘못된 데이터를 찾은 사람: cheetose