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

31023번 - Hit Song 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB165504033.333%

문제

Everyone can generally recognize when they hear a hit song. It's melodic, the words are easy to follow, and is auditorily pleasant.

Your job is to determine if a song will be a hit song based on its lyrics. Because the general population has lost their ideals of quality due of oversaturation of media, the threshold for deciding if a song will be a hit or not will be if the song uses words that most people find appealing at least 75% of the time.

입력

The first line of input contains the number of test cases N (1 <= N <= 100).

Each test case begins with a line containing P (1 <= P <= 100), indicating the number of pleasant words. The following P lines each contain a pleasant word. The following line contains a number L (1 <= L <= 100), indicating the number of lines in a song. The following L lines each contain a line of the song you are analyzing. A word is a sequence of 1 or more ASCII letters. Words are separated by (and may be preceded by or followed by) other (non-letter) printable ASCII characters (using ASCII values 32-126). No input line will exceed 100 characters. Ignore case when comparing words.

출력

For each test case, if the song reaches the 75% threshold of pleasantness, output It's a hit!, otherwise output Delete immediately! . Output a single line after each case.

제한

예제 입력 1

2
3
love
baby
beautiful
2
Baby baby baby, I love you, beautiful baby.
Love is in the air tonight!
3
love
baby
beautiful
1
Baby baby baby, I love you, beautiful baby.

예제 출력 1

Delete immediately!
It's a hit!

힌트

출처

ICPC > Regionals > North America > South Central USA Regional > 2016 South Central USA Regional Programming Contest I번

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

출처

대학교 대회

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

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