結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-31 14:20:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 527 bytes |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 55,256 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 08:26:59 |
| 合計ジャッジ時間 | 986 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, b;
cin >>s;
int count = 0;
for (int i = 0; i < 8; ++i) {
cin >> b;
for (auto itr = b.begin(); itr != b.end(); ++itr) {
if ( *itr != '.') count++;
}
}
if (s == "oda") {
if (count % 2 == 0) cout << "oda" << endl;
else cout << "yukiko" << endl;
} else {
if (count % 2 == 0) cout << "yukiko" << endl;
else cout << "oda" << endl;
}
return 0;
}