結果

問題 No.88 次はどっちだ
ユーザー r.suzukir.suzuki
提出日時 2016-01-13 11:36:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 665 bytes
コンパイル時間 3,941 ms
コンパイル使用メモリ 80,396 KB
実行使用メモリ 57,724 KB
最終ジャッジ日時 2023-10-19 22:58:04
合計ジャッジ時間 5,632 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,412 KB
testcase_01 WA -
testcase_02 AC 130 ms
57,268 KB
testcase_03 AC 131 ms
57,188 KB
testcase_04 AC 131 ms
57,228 KB
testcase_05 AC 133 ms
57,280 KB
testcase_06 WA -
testcase_07 AC 132 ms
57,272 KB
testcase_08 AC 135 ms
57,428 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

interface Delete{
	static void delete(){
		
	}
}

class DeletePeriod implements Delete{
	public static void delete(String s){
		s.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();
		}
		
		DeletePeriod.delete(str);
		
		if(str.length()%2 == 0){
			System.out.println(first);
		}
		else{
			System.out.println(second);
		}
	}
}
0