結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-02 12:35:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 474 bytes |
| コンパイル時間 | 1,451 ms |
| コンパイル使用メモリ | 160,448 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 09:02:49 |
| 合計ジャッジ時間 | 1,809 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef DEBUG
std::ifstream in("/home/share/inputf.in");
std::cin.rdbuf(in.rdbuf());
#endif
string S;
cin >> S;
int n = 0;
if(S == "oda") n++;
for(int i = 0; i < 8; i++) {
string tmp;
cin >> tmp;
for(int j = 0; j < 8; j++) {
n += tmp[i] != '.';
}
}
bool ans = n % 2;
cout << (ans ? "oda" : "yukiko") << endl;
return 0;
}