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

16316번 - Baby Bites 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB87053949565.912%

문제

Arild just turned 1 year old, and is currently learning how to count. His favorite thing to count is how many mouthfuls he has in a meal: every time he gets a bite, he will count it by saying the number out loud.

Unfortunately, talking while having a mouthful sometimes causes Arild to mumble incomprehensibly, making it hard to know how far he has counted. Sometimes you even suspect he loses his count! You decide to write a program to determine whether Arild’s counting makes sense or not.

입력

The first line of input contains an integer n (1 ≤ n ≤ 1 000), the number of bites Arild receives. Then second line contains n space-separated words spoken by Arild, the i’th of which is either a non-negative integer ai (0 ≤ ai ≤ 10 000) or the string “mumble”.

출력

If Arild’s counting might make sense, print the string “makes sense”. Otherwise, print the string “something is fishy”.

제한

예제 입력 1

5
1 2 3 mumble 5

예제 출력 1

makes sense

예제 입력 2

8
1 2 3 mumble mumble 7 mumble 8

예제 출력 2

something is fishy

예제 입력 3

3
mumble mumble mumble

예제 출력 3

makes sense

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > Nordic Collegiate Programming Contest > NCPC 2018 B번

  • 문제를 만든 사람: Torstein Strømme
(追記) (追記ここまで)

출처

대학교 대회

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

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