結果

問題 No.88 次はどっちだ
コンテスト
ユーザー zaichu
提出日時 2015-12-25 00:30:01
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 399 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 938 ms
コンパイル使用メモリ 181,380 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-07 01:14:51
合計ジャッジ時間 3,008 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;

int main(){
	string player1,player2;
	cin >> player1;
	int b = 0,w = 0;
	for(int i = 0; i < 8; i++){
		string masu;
		cin >> masu;
		for(int j = 0; j < 8; j++){
			if(masu[j] == 'w') w++;
			else if(masu[j] == 'b') b++;
		}
	}
	if(player1 == "oda") player2 = "yukiko";
	else player2 = "oda";
	cout << (w >= b ? player1 : player2) << endl;
	return 0;
}
0