結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
Kaz_nl
|
| 提出日時 | 2017-08-28 21:41:38 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 74,352 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-06 11:30:28 |
| 合計ジャッジ時間 | 1,486 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
Kaz_nl