結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             prog470
                         | 
                    
| 提出日時 | 2016-09-11 02:04:16 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 609 bytes | 
| コンパイル時間 | 776 ms | 
| コンパイル使用メモリ | 70,500 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-17 00:14:17 | 
| 合計ジャッジ時間 | 1,542 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
	string S,s1,s2, B[8];
	cin >> S;
	if (S == "oda") {
		s1 = "oda";
		s2 = "yukiko";
	}
	else {
		s1 = "yukiko";
		s2 = "oda";
	}
	for (int i = 0; i < 8; i++) cin >> B[i];
	int cnt = 0;
	for (int i = 0; i < 8; i++) {
		for (int j = 0; j < 8; j++) {
			if (B[i][j] != '.') cnt++;
		}
	}
	if (cnt % 2 == 0) cout << s1 << endl;
	else cout << s2;
	return 0;
}
            
            
            
        
            
prog470