結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
suibaka_ku
|
| 提出日時 | 2017-03-06 19:18:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 393 bytes |
| 記録 | |
| コンパイル時間 | 659 ms |
| コンパイル使用メモリ | 71,388 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 11:29:30 |
| 合計ジャッジ時間 | 1,192 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string s[2];
cin >> s[0];
s[1] = (s[0] == "oda" ? "yukiko" : "oda");
int cnt = 0;
for(int i=0; i<8; ++i) {
string b;
cin >> b;
cnt += count(b.begin(), b.end(), 'w') + count(b.begin(), b.end(), 'b');
}
cout << s[cnt%2] << endl;
}
suibaka_ku