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

24815번 - Good Messages 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB50252152.500%

문제

Boris works at a secret communication station for the government training new employees on how to encode messages. Messages at this station are encoded with a rotation ("Caesar") cipher that replaces each letter with one at a set offset in the alphabet, e.g., for offset 2ドル$ an 'a' is replaced by a 'c' and 'y' is replaced by 'a'. In order to encode a message, this cipher may be applied more than once. Each such application counts as a step in the encoding process. Boris teaches the new employees to encode messages by demonstrating each step of the encoding individually. However, Boris does not does not like seeing messages that contain at least half as many vowels as consonants after applying an encoding step. (Boris considers 'a', 'e', 'i', 'o', 'u', and 'y' as vowels). He grows annoyed and more and more unhappy with each step where this situation occurs.

Your job is to encode a given message and determine whether Boris will see fewer steps that annoy him than ones that don't. Since Boris wants to be happy in his job he will give a message that annoys him too much to a colleague.

입력

The input consists of a single test case. The first line of the input contains a single integer $O$ (1ドル \le O \le 25$) that represent the offset used for the rotation cipher. The second line contains the message to encode, which consists entirely of lowercase English characters. The length of the message is between 1ドル$ and 80ドル$ characters. The third line will contain an integer $N$ (1ドル \le N \le 26$), the number of times the cipher must be applied.

출력

Output 'Boris' if strictly more steps sound good than bad, and 'Colleague' otherwise.

제한

예제 입력 1

1
thequickbrownfoxjumpedoverthelazydog
10

예제 출력 1

Boris

예제 입력 2

4
banana
3

예제 출력 2

Colleague

힌트

출처

School > Virginia Tech High School Programming Contest > 2018 Virginia Tech High School Programming Contest K번

  • 문제를 만든 사람: Benjamin Reidys
(追記) (追記ここまで)

출처

대학교 대회

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

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