はまやんはまやんはまやん

hamayanhamayan's blog

Red or Not [AtCoder Beginner Contest 138 A]

https://atcoder.jp/contests/abc138/tasks/abc138_a

解説

https://atcoder.jp/contests/abc138/submissions/7014434

A以上とA未満の場合分けをして、出力する文字列を分けよう。

int A; string S;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> A >> S;
    if (3200 <= A) cout << S << endl;
    else cout << "red" << endl;
}