結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2017-08-28 21:41:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 562 ms |
コンパイル使用メモリ | 56,340 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-06 08:37:03 |
合計ジャッジ時間 | 1,024 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s, b, B, W; int cnt = 0; cin >> s; B = s; if (B == "oda") W = "yukiko"; else W = "oda"; for (int i = 0; i < 8; i++) { cin >> b; for (auto& e : b) { if (e == 'b' || e == 'w') cnt++; } } if (cnt % 2) cout << W << endl; else cout << B << endl; }