結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2019-06-25 21:17:48 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 575 bytes |
コンパイル時間 | 696 ms |
コンパイル使用メモリ | 55,904 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 07:54:51 |
合計ジャッジ時間 | 1,268 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){string S, B[8];int cnt = 0;cin >> S;for (int i = 0; i < 8; i++){cin >> B[i];for (int j = 0; j < 8; j++){if (B[i][j] != '.'){cnt++;}}}if (cnt % 2 == 0){cout << S << endl;}else{if (S == "oda"){cout << "yukiko" << endl;}else{cout << "oda" << endl;}}return 0;}