結果

問題 No.88 次はどっちだ
ユーザー soujiki
提出日時 2015-05-01 16:42:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 5,164 ms
コンパイル使用メモリ 74,452 KB
実行使用メモリ 41,192 KB
最終ジャッジ日時 2024-07-05 17:22:27
合計ジャッジ時間 5,150 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Yukicoder_88{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		String S = stdIn.next();
		int count = 0;
		for(int i=0;i<8;i++){
			String B = stdIn.next();
			for(int j=0;j<8;j++){
				if(B.charAt(j) != '.'){
					count++;
				}
			}

		}
		if(count%2==0){
			System.out.println(S);
		}
		else{
			if(S == "oda"){
				System.out.println("yukiko");
			}
			else{
				System.out.println("oda");
			}
		}
	}
}
0