結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  string f,b[8];
  cin>>f;
  int n=0;
  for(int i=0;i<8;i++){
    cin>>b[i];
    for(int j=0;j<8;j++){
      if(b[i][j]!='.')n++;
    }
  }
  if(n%2==0){
    cout<<f<<endl;
  }else if(f=="oda"){
    cout<<"yukiko"<<endl;
  }else{
    cout<<"oda"<<endl;
  }
}
0