以下の内容はhttps://blog.hamayanhamayan.com/entry/2019/08/19/024026より取得しました。


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;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2019/08/19/024026より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14