結果

問題 No.88 次はどっちだ
ユーザー shinwisteriashinwisteria
提出日時 2019-01-22 20:59:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 469 bytes
コンパイル時間 3,031 ms
コンパイル使用メモリ 72,212 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-10-14 09:18:49
合計ジャッジ時間 4,913 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
56,120 KB
testcase_01 AC 96 ms
56,212 KB
testcase_02 AC 96 ms
55,448 KB
testcase_03 AC 98 ms
55,468 KB
testcase_04 AC 100 ms
55,728 KB
testcase_05 AC 100 ms
56,200 KB
testcase_06 AC 97 ms
55,888 KB
testcase_07 AC 109 ms
55,956 KB
testcase_08 AC 101 ms
56,136 KB
testcase_09 AC 103 ms
56,200 KB
testcase_10 AC 100 ms
55,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No88 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String st = s.nextLine();
		String ne = "odayukiko".replaceAll(st,"");
		int space = 0;
		for(int i = 0;i < 8;i++){
			String bw = s.nextLine();
			for(int k = 0;k < 8;k++){
				if(bw.charAt(k) == '.'){
					space++;
				}
			}
		}
		s.close();

		if(space%2 == 0){
			System.out.println(st);
		}else{
			System.out.println(ne);
		}

	}

}
0