結果

問題 No.88 次はどっちだ
ユーザー kaffelun
提出日時 2018-06-02 12:39:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 474 bytes
コンパイル時間 1,256 ms
コンパイル使用メモリ 160,352 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 09:02:47
合計ジャッジ時間 1,930 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    #ifdef DEBUG
    std::ifstream in("/home/share/inputf.in");
    std::cin.rdbuf(in.rdbuf());
    #endif
    string S;
    cin >> S;
    int n = 0;
    if(S == "oda") n++;
    for(int i = 0; i < 8; i++) {
        string tmp;
        cin >> tmp;
        for(int j = 0; j < 8; j++) {
            n += tmp[j] != '.';
        }
    }
    bool ans = n % 2;
    cout << (ans ? "oda" : "yukiko") << endl;
    return 0;
}
0