Page cover image

Abakoda Letters

https://codeforces.com/group/cRJbcAFEwS/contest/487230/problem/A

Question

Abby was thinking about how wonderful the Abakada is. The Abakada is so wonderful that the Abakoda contest problems use the four letters A, B, K, D. Let's call these four the Abakoda letters. On second thought, Abby decides that their lowercase forms are also Abakoda letters.

The problem is straightforward. Given a single English letter, help Abby determine if it is an Abakoda letter.

Input Format

Input consists of a single line, containing a single English letter c.

Constraints

  • It is guaranteed that c is either an upper or lowercase English letter.

Output Format

Output a single line containing the answer.

  • If c is an Abakoda letter, output Abakoda

  • If not, output Boring

Sample Inputs:

Input

A

Output

Abakoda

Solution — Trivial

Similar to round 1, trivial, check-in purposes.

This time I use the string-char slice method to minimize the speedup process.

Here's the solution:

har = input().lower()

for i in 'abkd':
    if char == i:
        print('Abakoda')
        exit(0)

print('Boring')

Last updated