結果

問題 No.191 供託金
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-27 11:16:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 520 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 74,420 KB
実行使用メモリ 41,784 KB
最終ジャッジ日時 2024-04-28 07:08:18
合計ジャッジ時間 6,695 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,472 KB
testcase_01 AC 132 ms
41,572 KB
testcase_02 AC 133 ms
41,372 KB
testcase_03 AC 135 ms
41,232 KB
testcase_04 AC 148 ms
41,656 KB
testcase_05 AC 146 ms
41,488 KB
testcase_06 AC 147 ms
41,576 KB
testcase_07 AC 146 ms
41,700 KB
testcase_08 AC 139 ms
41,288 KB
testcase_09 AC 138 ms
41,468 KB
testcase_10 AC 142 ms
41,384 KB
testcase_11 AC 140 ms
41,360 KB
testcase_12 AC 134 ms
41,212 KB
testcase_13 AC 145 ms
41,444 KB
testcase_14 AC 141 ms
41,448 KB
testcase_15 AC 140 ms
41,372 KB
testcase_16 AC 142 ms
41,784 KB
testcase_17 AC 146 ms
41,500 KB
testcase_18 AC 134 ms
41,436 KB
testcase_19 AC 146 ms
41,480 KB
testcase_20 AC 139 ms
41,256 KB
testcase_21 AC 145 ms
41,288 KB
testcase_22 AC 143 ms
41,760 KB
testcase_23 AC 142 ms
41,496 KB
testcase_24 AC 124 ms
40,232 KB
testcase_25 AC 129 ms
41,364 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