結果

問題 No.2836 Comment Out
ユーザー tentententen
提出日時 2024-08-15 11:03:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 257 ms / 2,000 ms
コード長 1,292 bytes
コンパイル時間 3,128 ms
コンパイル使用メモリ 78,116 KB
実行使用メモリ 50,548 KB
最終ジャッジ日時 2024-08-15 11:04:13
合計ジャッジ時間 14,407 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
37,064 KB
testcase_01 AC 46 ms
37,176 KB
testcase_02 AC 45 ms
37,056 KB
testcase_03 AC 45 ms
37,020 KB
testcase_04 AC 45 ms
36,920 KB
testcase_05 AC 44 ms
37,172 KB
testcase_06 AC 45 ms
37,140 KB
testcase_07 AC 190 ms
45,344 KB
testcase_08 AC 184 ms
45,296 KB
testcase_09 AC 235 ms
49,968 KB
testcase_10 AC 246 ms
50,276 KB
testcase_11 AC 250 ms
49,856 KB
testcase_12 AC 255 ms
50,440 KB
testcase_13 AC 243 ms
50,520 KB
testcase_14 AC 243 ms
49,624 KB
testcase_15 AC 249 ms
49,996 KB
testcase_16 AC 255 ms
49,824 KB
testcase_17 AC 251 ms
49,964 KB
testcase_18 AC 234 ms
50,352 KB
testcase_19 AC 247 ms
50,344 KB
testcase_20 AC 234 ms
50,036 KB
testcase_21 AC 244 ms
50,548 KB
testcase_22 AC 248 ms
50,004 KB
testcase_23 AC 257 ms
50,116 KB
testcase_24 AC 204 ms
45,024 KB
testcase_25 AC 220 ms
45,316 KB
testcase_26 AC 167 ms
44,396 KB
testcase_27 AC 220 ms
45,996 KB
testcase_28 AC 220 ms
45,256 KB
testcase_29 AC 225 ms
46,712 KB
testcase_30 AC 173 ms
43,952 KB
testcase_31 AC 222 ms
46,296 KB
testcase_32 AC 166 ms
44,312 KB
testcase_33 AC 183 ms
43,880 KB
testcase_34 AC 156 ms
43,508 KB
testcase_35 AC 227 ms
47,644 KB
testcase_36 AC 182 ms
44,948 KB
testcase_37 AC 233 ms
46,592 KB
testcase_38 AC 212 ms
46,528 KB
testcase_39 AC 199 ms
45,084 KB
testcase_40 AC 179 ms
44,364 KB
testcase_41 AC 209 ms
46,148 KB
testcase_42 AC 215 ms
45,324 KB
testcase_43 AC 154 ms
44,364 KB
testcase_44 AC 49 ms
37,072 KB
testcase_45 AC 49 ms
36,940 KB
testcase_46 AC 46 ms
36,980 KB
testcase_47 AC 46 ms
37,244 KB
testcase_48 AC 47 ms
37,240 KB
testcase_49 AC 47 ms
37,060 KB
testcase_50 AC 47 ms
37,040 KB
testcase_51 AC 46 ms
37,336 KB
testcase_52 AC 46 ms
37,160 KB
testcase_53 AC 46 ms
36,924 KB
testcase_54 AC 49 ms
37,112 KB
testcase_55 AC 46 ms
37,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner();
        int n = sc.nextInt();
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            min = Math.min(min, sc.nextInt());
        }
        System.out.println(min <= 1 ? "Yes" : "No");
    }
}
class Scanner {
    BufferedReader br;
    StringTokenizer st = new StringTokenizer("");
    StringBuilder sb = new StringBuilder();
    
    public Scanner() {
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
        } catch (Exception e) {
            
        }
    }
    
    public int nextInt() {
        return Integer.parseInt(next());
    }
    
    public long nextLong() {
        return Long.parseLong(next());
    }
    
    public double nextDouble() {
        return Double.parseDouble(next());
    }
    
    public String next() {
        try {
            while (!st.hasMoreTokens()) {
                st = new StringTokenizer(br.readLine());
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            return st.nextToken();
        }
    }
    
}


0