結果

問題 No.88 次はどっちだ
ユーザー ふーらくたる
提出日時 2016-09-24 06:09:48
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 394 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 57,512 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-17 20:26:41
合計ジャッジ時間 906 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
    string s, s2;
    cin >> s;
    if (s == "oda") s2 = "yukiko";
    else s2 = "oda";

    int cnt = 0;
    for (int i = 0; i < 8; i++) {
        string b;
        cin >> b;
        for (char ch : b) {
            if (ch == 'w' || ch == 'b') cnt++;
        }
    }
    if (cnt % 2 == 0) cout << s << endl;
    else cout << s2 << endl;
}
0