結果

問題 No.88 次はどっちだ
ユーザー scachescache
提出日時 2014-12-07 19:05:05
言語 Java
(openjdk 23)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 602 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 75,228 KB
実行使用メモリ 41,184 KB
最終ジャッジ日時 2024-06-11 16:06:04
合計ジャッジ時間 4,185 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main p = new Main();
	}

	public Main() {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		char[][] b = new char[8][8];
		for(int i=0;i<8;i++)
			b[i] = sc.next().toCharArray();
		
		
		solve(s, b);
	}

	public void solve(String s, char[][] b) {
		int c = 0;
		for(int i=0;i<8;i++)
			for(int j=0;j<8;j++)
				if(b[i][j]=='.')
					c++;
		
		if((64-c)%2==0)
			System.out.println(s);
		else
			System.out.println(s.equals("oda")?"yukiko":"oda");
					
		
	}

}
0