SAC '22 Code Challenge 4 Junior P1 - Obligatory DeMello Problem

View as PDF

Submit solution


Points: 3
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

After failing his entire computer science class (including you), Mr. DeMello is feeling optimistic and struggling on today's Wordle.

Since you want to exploit this to boost your mark help Mr. DeMello, he has tasked you with a make-up assignment: determine if his Wordle guess is good.

A good guess is a word that has 2 or more vowels (the vowels are aeiouy).

Given a 5-letter lowercase word, W, output good if it is a good guess; if it is not a good guess, output bad.

Can you help your grade?

Input Specification

The first line will contain W (|W| = 5, where |W| denotes the length of string W), the word to determine if it is good.

Output Specification

Output good if W is a good word; otherwise, output bad.

Sample Input 1

keven

Sample Output 1

good

Sample Input 2

wordd

Sample Output 2

bad

Comments


  • -2
    oahsodhaodhas  commented on Aug. 26, 2022, 4:09 p.m.

    does the person who made this know what a vowel is? that is the true problem here.