結果

問題 No.138 化石のバージョン
ユーザー 37zigen37zigen
提出日時 2016-03-11 18:20:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 615 bytes
コンパイル時間 1,964 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 56,480 KB
最終ジャッジ日時 2023-08-28 13:37:36
合計ジャッジ時間 7,688 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,860 KB
testcase_01 AC 118 ms
55,760 KB
testcase_02 AC 119 ms
56,268 KB
testcase_03 AC 116 ms
56,364 KB
testcase_04 AC 116 ms
55,824 KB
testcase_05 AC 115 ms
55,616 KB
testcase_06 AC 115 ms
56,324 KB
testcase_07 AC 116 ms
56,480 KB
testcase_08 AC 116 ms
56,140 KB
testcase_09 AC 114 ms
55,808 KB
testcase_10 AC 114 ms
56,168 KB
testcase_11 AC 115 ms
56,252 KB
testcase_12 AC 116 ms
55,888 KB
testcase_13 AC 115 ms
56,176 KB
testcase_14 AC 115 ms
55,912 KB
testcase_15 AC 118 ms
54,740 KB
testcase_16 AC 116 ms
55,820 KB
testcase_17 AC 118 ms
55,744 KB
testcase_18 AC 118 ms
55,884 KB
testcase_19 AC 117 ms
56,180 KB
testcase_20 AC 116 ms
54,236 KB
testcase_21 AC 117 ms
56,056 KB
testcase_22 AC 121 ms
56,080 KB
testcase_23 AC 116 ms
56,056 KB
testcase_24 AC 119 ms
56,156 KB
testcase_25 AC 116 ms
54,252 KB
testcase_26 AC 117 ms
56,108 KB
testcase_27 AC 116 ms
55,908 KB
testcase_28 AC 116 ms
55,984 KB
testcase_29 AC 117 ms
55,992 KB
testcase_30 AC 116 ms
55,768 KB
testcase_31 AC 118 ms
56,344 KB
testcase_32 AC 116 ms
56,344 KB
testcase_33 AC 116 ms
55,928 KB
testcase_34 AC 116 ms
56,032 KB
testcase_35 AC 116 ms
56,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Date;
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		long exec_time=new Date().getTime();
		Scanner sc=new Scanner(System.in);
		String[] str1=sc.nextLine().split("\\.");
		String[] str2=sc.nextLine().split("\\.");		

		boolean judge=true;
		for(int i=0;i<3;i++){
			int a=Integer.parseInt(str1[i]);
			int b=Integer.parseInt(str2[i]);
			if(a<b){
				judge=false;
				break;
			}
			if(a>b){
				break;
			}
		}
		if(judge){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
		System.err.println(new Date().getTime()-exec_time);
	}
}
0