結果

問題 No.191 供託金
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-27 11:16:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 520 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 71,276 KB
実行使用メモリ 56,384 KB
最終ジャッジ日時 2023-08-10 13:59:41
合計ジャッジ時間 6,441 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,924 KB
testcase_01 AC 122 ms
55,704 KB
testcase_02 AC 121 ms
55,856 KB
testcase_03 AC 119 ms
56,116 KB
testcase_04 AC 126 ms
56,188 KB
testcase_05 AC 127 ms
56,020 KB
testcase_06 AC 129 ms
55,796 KB
testcase_07 AC 129 ms
55,748 KB
testcase_08 AC 120 ms
56,256 KB
testcase_09 AC 121 ms
56,352 KB
testcase_10 AC 129 ms
56,268 KB
testcase_11 AC 125 ms
56,384 KB
testcase_12 AC 121 ms
55,788 KB
testcase_13 AC 128 ms
55,740 KB
testcase_14 AC 133 ms
55,680 KB
testcase_15 AC 129 ms
54,200 KB
testcase_16 AC 126 ms
55,728 KB
testcase_17 AC 125 ms
56,012 KB
testcase_18 AC 118 ms
55,784 KB
testcase_19 AC 128 ms
55,964 KB
testcase_20 AC 125 ms
53,752 KB
testcase_21 AC 133 ms
55,696 KB
testcase_22 AC 126 ms
55,800 KB
testcase_23 AC 127 ms
55,912 KB
testcase_24 AC 123 ms
55,724 KB
testcase_25 AC 120 ms
55,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
        int n= koko.nextInt();
        int[] c = new int[n];
        int total=0;
        int count=0;
        for(int i=0; i<n; i++){
            c[i]=koko.nextInt();
            total = total +c[i];
        }
        for(int i=0; i<n; i++){
            if(c[i]<=total/10){
                count++;
            }
        }
        System.out.println(count*30);
    }
}
0