結果

問題 No.339 何人が回答したのか
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-09 18:49:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 548 bytes
コンパイル時間 2,156 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 42,020 KB
最終ジャッジ日時 2024-04-16 11:13:25
合計ジャッジ時間 12,076 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,912 KB
testcase_01 AC 128 ms
41,200 KB
testcase_02 AC 126 ms
41,364 KB
testcase_03 AC 126 ms
41,168 KB
testcase_04 AC 127 ms
41,424 KB
testcase_05 AC 122 ms
41,544 KB
testcase_06 AC 125 ms
41,228 KB
testcase_07 AC 123 ms
41,236 KB
testcase_08 AC 125 ms
41,228 KB
testcase_09 AC 124 ms
41,432 KB
testcase_10 AC 124 ms
41,120 KB
testcase_11 AC 124 ms
41,024 KB
testcase_12 AC 126 ms
41,436 KB
testcase_13 AC 133 ms
41,332 KB
testcase_14 AC 124 ms
41,392 KB
testcase_15 AC 123 ms
41,188 KB
testcase_16 AC 129 ms
41,508 KB
testcase_17 AC 131 ms
41,576 KB
testcase_18 AC 127 ms
41,328 KB
testcase_19 AC 114 ms
41,152 KB
testcase_20 AC 130 ms
41,692 KB
testcase_21 AC 127 ms
41,172 KB
testcase_22 AC 126 ms
41,740 KB
testcase_23 AC 130 ms
41,508 KB
testcase_24 AC 130 ms
41,300 KB
testcase_25 AC 127 ms
41,348 KB
testcase_26 AC 125 ms
41,404 KB
testcase_27 AC 126 ms
42,020 KB
testcase_28 AC 125 ms
41,284 KB
testcase_29 AC 110 ms
41,136 KB
testcase_30 AC 129 ms
41,600 KB
testcase_31 AC 127 ms
41,436 KB
testcase_32 AC 125 ms
41,852 KB
testcase_33 AC 115 ms
41,576 KB
testcase_34 AC 117 ms
41,260 KB
testcase_35 AC 125 ms
41,600 KB
testcase_36 AC 126 ms
41,696 KB
testcase_37 AC 124 ms
41,520 KB
testcase_38 AC 112 ms
41,116 KB
testcase_39 AC 124 ms
41,268 KB
testcase_40 AC 127 ms
41,256 KB
testcase_41 AC 130 ms
41,364 KB
testcase_42 AC 124 ms
41,232 KB
testcase_43 AC 125 ms
41,528 KB
testcase_44 AC 109 ms
41,132 KB
testcase_45 AC 126 ms
41,400 KB
testcase_46 AC 136 ms
41,320 KB
testcase_47 AC 123 ms
41,612 KB
testcase_48 AC 125 ms
41,320 KB
testcase_49 AC 125 ms
41,256 KB
testcase_50 AC 124 ms
41,096 KB
testcase_51 AC 127 ms
41,328 KB
testcase_52 AC 126 ms
41,704 KB
testcase_53 AC 125 ms
41,668 KB
testcase_54 AC 124 ms
41,412 KB
testcase_55 AC 127 ms
40,932 KB
testcase_56 AC 128 ms
41,664 KB
testcase_57 AC 109 ms
41,272 KB
testcase_58 AC 129 ms
41,540 KB
testcase_59 AC 127 ms
41,676 KB
testcase_60 AC 126 ms
41,424 KB
testcase_61 AC 126 ms
41,280 KB
testcase_62 AC 123 ms
41,540 KB
testcase_63 AC 128 ms
41,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] a = new int[N];
    for(int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int ans = 0;
    for(int x = 1; x <= 100; x++) {
      boolean flg = true;
      for(int i = 0; i < N; i++) {
        if((x * a[i]) % 100 != 0) {
          flg = false;
          break;
        }
      }
      if(flg) {
        ans = x;
        break;
      }
    }
    System.out.println(ans);
  }
}
0