結果

問題 No.138 化石のバージョン
コンテスト
ユーザー ルッツファン
提出日時 2015-11-28 00:40:38
言語 Java
(openjdk 27 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
RE  
実行時間 -
コード長 1,187 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,168 ms
コンパイル使用メモリ 83,068 KB
実行使用メモリ 41,212 KB
最終ジャッジ日時 2026-08-26 16:46:42
合計ジャッジ時間 5,604 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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;
		
		

		
		
		while(true){
			try {
				tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
			}
			
			String[] 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");
			}
			
		}
		
	}

}
0