結果

問題 No.138 化石のバージョン
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:29:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 846 bytes
コンパイル時間 2,112 ms
コンパイル使用メモリ 82,828 KB
実行使用メモリ 54,796 KB
最終ジャッジ日時 2024-04-20 05:14:45
合計ジャッジ時間 7,368 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,680 KB
testcase_01 AC 104 ms
41,168 KB
testcase_02 AC 102 ms
41,212 KB
testcase_03 AC 100 ms
41,392 KB
testcase_04 AC 113 ms
41,500 KB
testcase_05 AC 113 ms
41,552 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 114 ms
41,432 KB
testcase_17 AC 123 ms
41,684 KB
testcase_18 AC 125 ms
41,208 KB
testcase_19 AC 114 ms
41,632 KB
testcase_20 AC 112 ms
41,080 KB
testcase_21 AC 111 ms
41,444 KB
testcase_22 AC 121 ms
41,236 KB
testcase_23 AC 119 ms
41,368 KB
testcase_24 AC 121 ms
41,320 KB
testcase_25 AC 102 ms
41,340 KB
testcase_26 WA -
testcase_27 AC 114 ms
41,512 KB
testcase_28 AC 119 ms
41,408 KB
testcase_29 AC 112 ms
41,680 KB
testcase_30 AC 101 ms
41,764 KB
testcase_31 AC 119 ms
41,568 KB
testcase_32 AC 113 ms
41,312 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static class Pair<T,U>{
		T l;U r;
		Pair(T L,U R){l=L;r=R;}
		T getL(){return l;}
		U getR(){return r;}
	}

	public static void main(String[]$){
		int[]a=Arrays.stream(s.next().split("\\.")).mapToInt(Integer::parseInt).toArray();
		int[]b=Arrays.stream(s.next().split("\\.")).mapToInt(Integer::parseInt).toArray();
		for(int i=0;i<3;++i) {
			if(a[i]<b[i]) {
				System.out.println("NO");
				return;
			}
		}
		System.out.println("YES");
	}
}
0