結果

問題 No.88 次はどっちだ
ユーザー xuelei
提出日時 2018-07-28 10:27:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 55,380 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 18:17:14
合計ジャッジ時間 801 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
  string s;
  cin >> s;
  string str;
  int n=0;
  for(int i=0;i<8;i++){
    cin >> str;
    for(int j=0;j<8;j++){
      if(str[j]!='.')n++;
    }
  }
  if(n%2==0)cout << s << endl;
  else if(s=="oda")cout << "yukiko" << endl;
  else cout << "oda" << endl;

  return 0;
}
0