結果

問題 No.1256 連続整数列
ユーザー ks2mks2m
提出日時 2020-10-16 21:23:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 71,424 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-09-28 08:14:23
合計ジャッジ時間 6,244 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,248 KB
testcase_01 AC 118 ms
55,544 KB
testcase_02 AC 119 ms
55,680 KB
testcase_03 AC 121 ms
55,628 KB
testcase_04 AC 121 ms
55,996 KB
testcase_05 AC 118 ms
55,888 KB
testcase_06 AC 118 ms
56,112 KB
testcase_07 AC 121 ms
56,232 KB
testcase_08 AC 120 ms
56,172 KB
testcase_09 AC 118 ms
55,696 KB
testcase_10 AC 119 ms
55,956 KB
testcase_11 AC 118 ms
55,516 KB
testcase_12 AC 119 ms
56,452 KB
testcase_13 AC 119 ms
56,116 KB
testcase_14 AC 117 ms
56,316 KB
testcase_15 AC 117 ms
56,056 KB
testcase_16 AC 119 ms
56,508 KB
testcase_17 AC 119 ms
55,864 KB
testcase_18 AC 119 ms
56,248 KB
testcase_19 AC 119 ms
56,300 KB
testcase_20 AC 119 ms
55,912 KB
testcase_21 AC 122 ms
56,124 KB
testcase_22 AC 114 ms
55,908 KB
testcase_23 AC 119 ms
55,940 KB
testcase_24 AC 119 ms
56,252 KB
testcase_25 AC 119 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		sc.close();

		if (a == 1) {
			System.out.println("NO");
		} else {
			System.out.println("YES");
		}
	}
}
0