結果

問題 No.138 化石のバージョン
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-30 15:15:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 904 bytes
コンパイル時間 4,580 ms
コンパイル使用メモリ 75,456 KB
実行使用メモリ 41,756 KB
最終ジャッジ日時 2024-04-16 18:41:12
合計ジャッジ時間 9,269 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,376 KB
testcase_01 AC 123 ms
41,756 KB
testcase_02 AC 129 ms
41,720 KB
testcase_03 AC 127 ms
41,476 KB
testcase_04 AC 127 ms
41,516 KB
testcase_05 AC 125 ms
40,736 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 128 ms
41,348 KB
testcase_17 AC 129 ms
41,548 KB
testcase_18 AC 127 ms
41,444 KB
testcase_19 AC 128 ms
41,460 KB
testcase_20 AC 127 ms
41,464 KB
testcase_21 AC 127 ms
41,488 KB
testcase_22 AC 127 ms
41,372 KB
testcase_23 AC 127 ms
41,704 KB
testcase_24 AC 128 ms
41,352 KB
testcase_25 AC 131 ms
40,976 KB
testcase_26 WA -
testcase_27 AC 127 ms
41,284 KB
testcase_28 AC 126 ms
41,688 KB
testcase_29 AC 126 ms
41,140 KB
testcase_30 AC 125 ms
41,580 KB
testcase_31 AC 125 ms
41,128 KB
testcase_32 AC 127 ms
41,208 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

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("\\.");
		String[] str2arr = str2.split("\\.");

		for(int i = 0; i < str1arr.length; i++){
				if(Integer.parseInt(str1arr[i])<Integer.parseInt(str2arr[i])){
					return "NO";
				}
		}
		/*
		for(int i = 0; i < str1arr.length; i++){
			com_numbers1 += str1arr[i];
		}
		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