結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
gen10ki
|
| 提出日時 | 2016-03-25 14:21:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 543 bytes |
| コンパイル時間 | 940 ms |
| コンパイル使用メモリ | 55,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 00:48:39 |
| 合計ジャッジ時間 | 1,230 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string name;
cin >> name;
string data[8];
for (int i = 0; i < 8; i++) {
cin >> data[i];
}
int count = 0;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (data[i][j] != '.') {
count++;
}
}
}
if (name == "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;
}
gen10ki