結果

問題 No.88 次はどっちだ
ユーザー soujikisoujiki
提出日時 2015-05-01 16:42:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 6,014 ms
コンパイル使用メモリ 72,660 KB
実行使用メモリ 56,092 KB
最終ジャッジ日時 2023-09-19 04:52:35
合計ジャッジ時間 8,178 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,092 KB
testcase_01 WA -
testcase_02 AC 123 ms
55,668 KB
testcase_03 AC 123 ms
55,672 KB
testcase_04 AC 124 ms
55,652 KB
testcase_05 AC 127 ms
55,460 KB
testcase_06 AC 124 ms
55,672 KB
testcase_07 AC 122 ms
55,784 KB
testcase_08 AC 124 ms
55,696 KB
testcase_09 WA -
testcase_10 AC 124 ms
55,952 KB
権限があれば一括ダウンロードができます

ソースコード

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