結果

問題 No.1107 三善アクセント
ユーザー マサ
提出日時 2022-02-17 14:37:34
言語 Java
(openjdk 23)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 2,424 ms
コンパイル使用メモリ 74,392 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-06-29 07:40:49
合計ジャッジ時間 6,391 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a1 = sc.nextInt();
		int a2 = sc.nextInt();
		int a3 = sc.nextInt();
		int a4 = sc.nextInt();
		
		if (a1 < a2) {
			if (a3 > a4) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
		
		
		sc.close();
	}
}
0