Logo
(追記) (追記ここまで)

18142번 - Tapioka 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB26620418176.695%

문제

Nowadays, bubble tea has been famous around the globe. They have different names – bubbles, pearls, and tapioka. People start thinking to put almost every food together with tapioka. E.g., bubble tea pizza, bubble tea ramen, bubble tea hotpot, bubble tea cake, and so on.

Given the name of a dish, you are going to repeatedly remove all the tapioka part and reveal the true colors of that dish. Notice that the dishes in this problem will consist of exactly three words. Every dish always starts with either the term “bubble tea” or “tapioka”. For example, you may observe a dish named “bubble tea ramen”, but you will never observe a dish named “bubble ramen tea”.

입력

The input file contains exactly one test case. There is only one line in the input file, and it contains a dish name consisting of exactly three words.

출력

If after repeatedly removing all occurrence of “bubble” or “tapioka” (as entire word) but you found nothing left, output “nothing”. Otherwise, output the remaining words separated by blanks in the original order.

제한

  • In this problem, a word is a string of English letters in lowercase.
  • In the input file, all words are seperated by blanks.
  • The length of each word does not exceed 32.

예제 입력 1

bubble tea pizza

예제 출력 1

tea pizza

예제 입력 2

tapioka cake tapiokas

예제 출력 2

cake tapiokas

예제 입력 3

tapioka jasmine tea

예제 출력 3

jasmine tea

예제 입력 4

tapioka bubble tapioka

예제 출력 4

nothing

힌트

출처

ICPC > Regionals > Asia Pacific > Taiwan > 2019 ICPC Asia Taipei-Hsinchu Regional D번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /