結果

問題 No.138 化石のバージョン
ユーザー ルッツファンルッツファン
提出日時 2015-11-28 00:50:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 1,242 bytes
コンパイル時間 4,689 ms
コンパイル使用メモリ 73,588 KB
実行使用メモリ 49,676 KB
最終ジャッジ日時 2023-08-28 13:34:12
合計ジャッジ時間 6,675 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,068 KB
testcase_01 AC 42 ms
49,272 KB
testcase_02 AC 42 ms
49,476 KB
testcase_03 AC 41 ms
49,064 KB
testcase_04 AC 42 ms
49,272 KB
testcase_05 AC 42 ms
49,164 KB
testcase_06 AC 42 ms
49,676 KB
testcase_07 AC 42 ms
49,260 KB
testcase_08 AC 42 ms
49,172 KB
testcase_09 AC 43 ms
49,268 KB
testcase_10 AC 42 ms
49,360 KB
testcase_11 AC 42 ms
49,220 KB
testcase_12 AC 41 ms
49,392 KB
testcase_13 AC 42 ms
49,460 KB
testcase_14 AC 41 ms
49,068 KB
testcase_15 AC 42 ms
49,276 KB
testcase_16 AC 43 ms
49,388 KB
testcase_17 AC 43 ms
47,240 KB
testcase_18 AC 43 ms
49,048 KB
testcase_19 AC 44 ms
47,292 KB
testcase_20 AC 43 ms
49,204 KB
testcase_21 AC 44 ms
49,300 KB
testcase_22 AC 45 ms
49,396 KB
testcase_23 AC 43 ms
49,300 KB
testcase_24 AC 44 ms
49,248 KB
testcase_25 AC 42 ms
49,164 KB
testcase_26 AC 43 ms
49,304 KB
testcase_27 AC 42 ms
49,060 KB
testcase_28 AC 43 ms
49,560 KB
testcase_29 AC 42 ms
49,076 KB
testcase_30 AC 41 ms
47,320 KB
testcase_31 AC 42 ms
49,432 KB
testcase_32 AC 42 ms
49,272 KB
testcase_33 AC 42 ms
49,212 KB
testcase_34 AC 42 ms
49,304 KB
testcase_35 AC 42 ms
49,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class yukicoder04 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		
		

		
		

			try {
				tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
			}
			
			String[] tew = null;
			tew = tes.split("\\.");

			int x = Integer.parseInt(tew[0])
					,y = Integer.parseInt(tew[1])
					,z = Integer.parseInt(tew[2]);
			
			try {
				tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
			}
			
			tew = tes.split("\\.");
			int x2 = Integer.parseInt(tew[0]),y2 = Integer.parseInt(tew[1]),z2 = Integer.parseInt(tew[2]);
			if(x < x2){
				System.out.println("NO");
			}else if(x > x2){
				System.out.println("YES");
			}else if(y < y2){
				System.out.println("NO");
			}else if(y > y2){
				System.out.println("YES");
			}else if(z < z2){
				System.out.println("NO");
			}else if(z > z2){
				System.out.println("YES");
			}else{
				System.out.println("YES");
			}
			
		
	}

}
0