結果

問題 No.138 化石のバージョン
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-30 14:26:38
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 748 bytes
コンパイル時間 3,597 ms
コンパイル使用メモリ 77,104 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2024-04-16 18:27:06
合計ジャッジ時間 9,459 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
41,400 KB
testcase_01 AC 131 ms
41,512 KB
testcase_02 WA -
testcase_03 AC 132 ms
41,548 KB
testcase_04 AC 129 ms
41,540 KB
testcase_05 AC 129 ms
41,148 KB
testcase_06 AC 132 ms
41,252 KB
testcase_07 AC 131 ms
41,288 KB
testcase_08 WA -
testcase_09 AC 131 ms
41,320 KB
testcase_10 AC 131 ms
41,256 KB
testcase_11 AC 131 ms
41,124 KB
testcase_12 AC 132 ms
41,500 KB
testcase_13 WA -
testcase_14 AC 129 ms
41,276 KB
testcase_15 WA -
testcase_16 AC 131 ms
41,464 KB
testcase_17 AC 128 ms
41,668 KB
testcase_18 AC 131 ms
41,152 KB
testcase_19 AC 130 ms
41,312 KB
testcase_20 AC 132 ms
41,312 KB
testcase_21 AC 129 ms
41,592 KB
testcase_22 AC 130 ms
41,708 KB
testcase_23 AC 129 ms
41,760 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 130 ms
41,376 KB
testcase_27 AC 130 ms
41,280 KB
testcase_28 AC 130 ms
41,500 KB
testcase_29 AC 130 ms
41,244 KB
testcase_30 AC 131 ms
41,724 KB
testcase_31 AC 130 ms
41,216 KB
testcase_32 AC 130 ms
41,596 KB
testcase_33 AC 131 ms
41,672 KB
testcase_34 AC 130 ms
41,108 KB
testcase_35 AC 130 ms
41,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki138 {
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str1 = scan.next();
		String str2 = scan.next();
		scan.close();
		System.out.println(judgeNumbers(str1, str2));
	}
	
	private static String judgeNumbers(String str1,String str2) {
		String com_numbers1 = "";
		String com_numbers2 = "";
		String[] str1arr = str1.split("\\.");
		for(int i = 0; i < str1arr.length; i++){
			com_numbers1 += str1arr[i];
		}
		String[] str2arr = str2.split("\\.");
		for(int i = 0; i < str2arr.length; i++){
			com_numbers2 += str2arr[i];
		}
		
		if(Integer.parseInt(com_numbers1)<Integer.parseInt(com_numbers2)){
			return "NO";
		}
		return "YES";
	}
}
0