結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
fumi6328
|
| 提出日時 | 2018-08-27 17:06:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 413 bytes |
| コンパイル時間 | 673 ms |
| コンパイル使用メモリ | 56,464 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-04 13:48:12 |
| 合計ジャッジ時間 | 1,039 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
cin >> s;
string b;
int x = 0;
for(int i = 0; i < 8; i++){
cin >> b;
for(int j = 0; j < 8; j++)
if(b[j] != '.') x++;
}
if(x % 2 == 0)
cout << s << endl;
else
cout << ((s == "oda") ? "yukiko" : "oda") << endl;
return 0;
}
fumi6328