以下の内容はhttps://blog.hamayanhamayan.com/entry/2018/06/17/094326より取得しました。


Happy Birthday! [AtCoder Beginner Contest 100 A]

https://beta.atcoder.jp/contests/abc100/tasks/abc100_a

解説

https://beta.atcoder.jp/contests/abc100/submissions/2691848

最適に取る方法は交互に取ること。
最適に取るとふたりとも最高8個取れる。
なので、どちらも8個以下の場合はYay!
そうでないなら:(である。

int A, B;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> A >> B;
    if (A <= 8 and B <= 8) printf("Yay!\n");
    else printf(":(\n");
}



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

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