結果

問題 No.2836 Comment Out
ユーザー ks2mks2m
提出日時 2024-08-09 22:31:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 317 ms / 2,000 ms
コード長 603 bytes
コンパイル時間 2,470 ms
コンパイル使用メモリ 74,772 KB
実行使用メモリ 58,144 KB
最終ジャッジ日時 2024-08-09 22:31:56
合計ジャッジ時間 14,437 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
36,888 KB
testcase_01 AC 48 ms
36,780 KB
testcase_02 AC 49 ms
36,992 KB
testcase_03 AC 48 ms
36,916 KB
testcase_04 AC 48 ms
37,256 KB
testcase_05 AC 47 ms
37,088 KB
testcase_06 AC 51 ms
36,800 KB
testcase_07 AC 211 ms
54,436 KB
testcase_08 AC 215 ms
54,292 KB
testcase_09 AC 264 ms
57,604 KB
testcase_10 AC 282 ms
57,724 KB
testcase_11 AC 279 ms
57,632 KB
testcase_12 AC 296 ms
57,452 KB
testcase_13 AC 268 ms
57,628 KB
testcase_14 AC 272 ms
57,616 KB
testcase_15 AC 285 ms
57,652 KB
testcase_16 AC 284 ms
57,644 KB
testcase_17 AC 286 ms
57,700 KB
testcase_18 AC 280 ms
57,596 KB
testcase_19 AC 279 ms
57,632 KB
testcase_20 AC 275 ms
57,420 KB
testcase_21 AC 307 ms
58,144 KB
testcase_22 AC 288 ms
57,696 KB
testcase_23 AC 280 ms
57,404 KB
testcase_24 AC 199 ms
49,684 KB
testcase_25 AC 261 ms
55,700 KB
testcase_26 AC 171 ms
46,540 KB
testcase_27 AC 303 ms
55,096 KB
testcase_28 AC 203 ms
52,016 KB
testcase_29 AC 238 ms
53,516 KB
testcase_30 AC 191 ms
49,320 KB
testcase_31 AC 243 ms
55,212 KB
testcase_32 AC 148 ms
45,200 KB
testcase_33 AC 198 ms
49,000 KB
testcase_34 AC 168 ms
45,320 KB
testcase_35 AC 317 ms
55,140 KB
testcase_36 AC 179 ms
49,184 KB
testcase_37 AC 266 ms
53,600 KB
testcase_38 AC 229 ms
53,844 KB
testcase_39 AC 205 ms
52,052 KB
testcase_40 AC 203 ms
51,912 KB
testcase_41 AC 243 ms
53,420 KB
testcase_42 AC 249 ms
55,316 KB
testcase_43 AC 144 ms
45,560 KB
testcase_44 AC 52 ms
36,892 KB
testcase_45 AC 52 ms
36,784 KB
testcase_46 AC 50 ms
36,972 KB
testcase_47 AC 47 ms
37,236 KB
testcase_48 AC 49 ms
37,168 KB
testcase_49 AC 48 ms
36,908 KB
testcase_50 AC 49 ms
37,184 KB
testcase_51 AC 48 ms
37,136 KB
testcase_52 AC 48 ms
36,948 KB
testcase_53 AC 48 ms
37,112 KB
testcase_54 AC 49 ms
36,688 KB
testcase_55 AC 48 ms
36,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		String[] sa = br.readLine().split(" ");
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sa[i]);
		}
		br.close();

		int min = 1000000007;
		for (int i = 0; i < n; i++) {
			min = Math.min(min, a[i]);
		}
		if (min <= 1) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0