結果

問題 No.191 供託金
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-13 05:59:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 488 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 71,636 KB
実行使用メモリ 56,504 KB
最終ジャッジ日時 2023-08-17 04:09:28
合計ジャッジ時間 6,660 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,940 KB
testcase_01 AC 120 ms
56,112 KB
testcase_02 AC 121 ms
56,200 KB
testcase_03 AC 121 ms
56,204 KB
testcase_04 AC 133 ms
56,000 KB
testcase_05 AC 130 ms
55,872 KB
testcase_06 AC 131 ms
55,844 KB
testcase_07 AC 131 ms
55,916 KB
testcase_08 AC 124 ms
55,812 KB
testcase_09 AC 125 ms
56,504 KB
testcase_10 AC 130 ms
56,168 KB
testcase_11 AC 127 ms
56,240 KB
testcase_12 AC 124 ms
56,148 KB
testcase_13 AC 132 ms
56,048 KB
testcase_14 AC 131 ms
55,544 KB
testcase_15 AC 132 ms
55,816 KB
testcase_16 AC 128 ms
56,496 KB
testcase_17 AC 131 ms
56,216 KB
testcase_18 AC 122 ms
55,912 KB
testcase_19 AC 132 ms
55,816 KB
testcase_20 AC 128 ms
56,116 KB
testcase_21 AC 134 ms
55,752 KB
testcase_22 AC 132 ms
56,356 KB
testcase_23 AC 133 ms
55,872 KB
testcase_24 AC 128 ms
55,832 KB
testcase_25 AC 121 ms
55,892 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 [] C = new int [N];
        int sum = 0;
        for(int i=0; i<N; i++){
            C[i] = sc.nextInt();
            sum = sum + C[i];
        }
        int c = 0;
        for(int i=0; i<N; i++){
            if(10*C[i] <= sum){
                c++;
            }
        }
        System.out.println(c*30);
    }
}
0