結果

問題 No.88 次はどっちだ
ユーザー ikdikd
提出日時 2015-11-01 09:20:21
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 485 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 60,108 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 06:50:12
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>

#define MAX 64
using namespace std;

int main(){


    string name;
    char board[MAX];

    cin >>name;
    int cnt=0;
    for(int i=0; i<MAX; i++){
        cin>> board[i];
        if(board[i] == '.'){
            cnt++;
        }
    }

    if(cnt%2==0){
        cout<< name<< endl;
    }else if(name == "oda"){
        cout<< "yukiko"<< endl;
    }else{
        cout<< "oda"<< endl;
    }

    return 0;
}
0