結果

問題 No.88 次はどっちだ
ユーザー r.suzukir.suzuki
提出日時 2016-01-13 12:34:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 5,000 ms
コード長 682 bytes
コンパイル時間 3,934 ms
コンパイル使用メモリ 76,876 KB
実行使用メモリ 57,756 KB
最終ジャッジ日時 2023-10-19 22:58:10
合計ジャッジ時間 6,401 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
57,436 KB
testcase_01 AC 137 ms
55,712 KB
testcase_02 AC 137 ms
57,196 KB
testcase_03 AC 138 ms
57,204 KB
testcase_04 AC 141 ms
57,520 KB
testcase_05 AC 141 ms
57,504 KB
testcase_06 AC 146 ms
55,132 KB
testcase_07 AC 145 ms
57,228 KB
testcase_08 AC 141 ms
57,168 KB
testcase_09 AC 140 ms
57,472 KB
testcase_10 AC 139 ms
57,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

interface Delete{
	static void delete(String str){
		
	}
}

class Period implements Delete{
	public static String delete(String str){
		return str.replaceAll("\\.","");
	}
}

public class No_88{
	public static void main(String[] args){
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String first,second,str;
		first = sc.next();
		second = "";
		str = "";
		
		if(first.equals("oda")){
			second = "yukiko";
		}
		else if(first.equals("yukiko")){
			second = "oda";
		}
		
		for(int i = 0;i < 8;i++){
			str += sc.next();
		}
		
		str = Period.delete(str);
		
		if(str.length()%2 == 0){
			System.out.println(first);
		}
		else{
			System.out.println(second);
		}
	}
}
0