結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2017-05-04 00:47:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 544 ms |
コンパイル使用メモリ | 58,468 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 07:11:45 |
合計ジャッジ時間 | 1,178 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <algorithm> #include <iostream> using namespace std; int main(int argc, const char* argv[]) { string S; cin >> S; int cnt = 0; for (int i = 0; i < 8; i++) { string B; cin >> B; cnt += count(B.begin(), B.end(), 'b'); cnt += count(B.begin(), B.end(), 'w'); } string _S = S == "oda" ? "yukiko" : "oda"; cout << (cnt % 2 == 0 ? S : _S) << endl; return 0; }