以下の内容はhttps://blog.hamayanhamayan.com/entry/2018/12/09/094623より取得しました。


Christmas Eve Eve Eve [AtCoder Beginner Contest 115 A]

https://beta.atcoder.jp/contests/abc115/tasks/abc115_a

解説

https://beta.atcoder.jp/contests/abc115/submissions/3744434

下手に工夫するより、場合分けで4択書いてしまうのも悪くない。
ループでEveを出す実装もあり、以下はそれで解いている。

int D;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> D;
 
    printf("Christmas");
    int c = 25 - D;
    rep(i, 0, c) printf(" Eve");
    printf("\n");
}



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

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