結果

問題 No.191 供託金
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-17 01:03:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 439 bytes
コンパイル時間 2,987 ms
コンパイル使用メモリ 74,836 KB
実行使用メモリ 41,752 KB
最終ジャッジ日時 2024-04-28 08:38:48
合計ジャッジ時間 6,917 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
41,448 KB
testcase_01 AC 116 ms
41,568 KB
testcase_02 AC 103 ms
40,928 KB
testcase_03 AC 101 ms
41,084 KB
testcase_04 AC 128 ms
41,316 KB
testcase_05 AC 130 ms
41,076 KB
testcase_06 AC 124 ms
41,452 KB
testcase_07 AC 123 ms
41,576 KB
testcase_08 AC 116 ms
41,200 KB
testcase_09 AC 116 ms
41,504 KB
testcase_10 AC 127 ms
41,352 KB
testcase_11 AC 107 ms
41,176 KB
testcase_12 AC 115 ms
41,264 KB
testcase_13 AC 123 ms
41,612 KB
testcase_14 AC 128 ms
41,324 KB
testcase_15 AC 111 ms
41,188 KB
testcase_16 AC 118 ms
41,352 KB
testcase_17 AC 124 ms
41,396 KB
testcase_18 AC 118 ms
41,156 KB
testcase_19 AC 123 ms
41,316 KB
testcase_20 AC 135 ms
41,400 KB
testcase_21 AC 127 ms
41,580 KB
testcase_22 AC 122 ms
41,120 KB
testcase_23 AC 122 ms
41,752 KB
testcase_24 AC 121 ms
40,888 KB
testcase_25 AC 103 ms
41,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise92{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] c = new int[n];
    int sum = 0;

    for(int i = 0; i < n; i++){
      c[i] = sc.nextInt();
      sum += c[i];
    }

    int count = 0;

    for(int i = 0; i < n; i++){
      if(c[i] <= sum / 10){
        count++;
      }
    }
    System.out.println(30 * count);
  }
}
0