結果

問題 No.88 次はどっちだ
ユーザー kano_townkano_town
提出日時 2014-12-07 19:03:27
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 587 bytes
コンパイル時間 3,327 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 54,488 KB
最終ジャッジ日時 2024-06-11 16:04:39
合計ジャッジ時間 4,651 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder88 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String name = sc.next();
		String b;
		int count = 0;
		for (int i = 0; i < 8; i++) {
			b = sc.next();
			for (int j = 0; j < 8; j++) {
				if (b.charAt(j) != '.') count++;
			}
		}
		if (name.equals("oda")) {
			if (count % 2 == 0)
				System.out.println("oda");
			else
				System.out.println("yuki");
		} else {
			if (count % 2 == 0)
				System.out.println("yuki");
			else
				System.out.println("oda");
		}

	}
}
0