CHFINTRO - Editorial

PROBLEM LINK:

Div 1
Div 2
Practice

Author: Full name
Tester: Full name
Editorialist: Oleksandr Kulkov

DIFFICULTY:

CAKEWALK

PREREQUISITES:

None

PROBLEM:

You’re given N numbers R_i and the number r. For each number output Good boi if R_i \geq r and output Bad boi otherwise.

EXPLANATION:

Just do it! Example code in C++:

int n, r;
cin >> n >> r;
for(int i = 0; i < n; i++) {
    int R;
    cin >> R;
    cout << (R >= r ? "Good boi" : "Bad boi") << endl;
}

AUTHOR’S AND TESTER’S SOLUTIONS:

Author’s solution can be found here.

Tester’s solution can be found here.

RELATED PROBLEMS: