結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fumi6328
                         | 
                    
| 提出日時 | 2018-08-27 17:01:06 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 440 bytes | 
| コンパイル時間 | 431 ms | 
| コンパイル使用メモリ | 55,392 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-04 13:35:49 | 
| 合計ジャッジ時間 | 932 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
    string s;
    cin >> s;
    string b;
    int x = 0;
    for(int i = 0; i < 8; i++){
        cin >> b;
        for(int j = 0; j < 8; j++)
            if(b[j] != '.') x++;
    }
    
    if((s == "oda" && x % 2 == 0) || (s == "yukiko" && x % 2 == 1))
        cout << "oda" << endl;
    else
        cout << "yukiko" << endl; 
    return 0;
}
            
            
            
        
            
fumi6328