TTC '18 Contest 1 P1 - Credit Score

View as PDF

Submit solution

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

Author:
Problem type

Given an integer N ranging from 1 to 300, this integer represents your credit score.

If your credit score is between 1 and 100, you should output bad.

If your credit score is between 101 to 200, then output ok.

Otherwise, if your credit score is between 201 to 300, output good.

Input Specifications

1 \le N \le 300

Output Specification

The output will be bad, ok, or good, depending on the expected output given the credit score.

Sample Input 1

100

Sample Output 1

bad

Sample Input 2

220

Sample Output 2

good

Comments

There are no comments at the moment.