結果

問題 No.88 次はどっちだ
ユーザー dora_maruta
提出日時 2015-01-03 14:22:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 392 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 56,708 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-13 02:14:26
合計ジャッジ時間 1,139 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>

int main(){
	std::string s;
	std::cin >> s;
	int cnt = 0;
	for (int i = 0; i < 8; ++i){
		std::string gyou;
		std::cin >> gyou;
		for (int j = 0; j < 8; ++j)
		if (gyou[j] != '.')cnt++;
	}
	if (cnt % 2 == 0)std::cout << s << std::endl;
	else {
		if (s == "yukiko")std::cout << "oda" << std::endl;
		else std::cout << "yukiko" << std::endl;
	}
	return 0;
}
0