結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-25 00:30:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 399 bytes |
| コンパイル時間 | 1,190 ms |
| コンパイル使用メモリ | 158,808 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 23:11:01 |
| 合計ジャッジ時間 | 1,691 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 5 |
ソースコード
#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;
}
zaichu