結果

問題 No.88 次はどっちだ
ユーザー Hydrogen332
提出日時 2024-09-27 18:09:27
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 532 bytes
コンパイル時間 1,888 ms
コンパイル使用メモリ 192,328 KB
最終ジャッジ日時 2025-02-24 13:26:59
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, e) for (int i = (int)s; i < (int)e; i++)

int main() {
    cin.tie(nullptr);
    
    string S;
    cin >> S;
    
    int cnt = 0;
    
    rep(i, 0, 8) rep(j, 0, 8) {
        char B;
        cin >> B;
        
        if (B != '.') cnt++;
    }
    
    if (S == "oda") {
        if (cnt % 2 == 0) cout << "oda\n";
        else cout << "yukiko\n";
    } else {
        if (cnt % 2 == 0) cout << "yukiko\n";
        else cout << "oda\n";
    }
}
0