結果

問題 No.191 供託金
ユーザー rf141rf141
提出日時 2015-06-28 16:12:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 427 bytes
コンパイル時間 2,820 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-04-28 07:20:22
合計ジャッジ時間 6,752 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
54,020 KB
testcase_01 AC 106 ms
53,608 KB
testcase_02 AC 112 ms
53,964 KB
testcase_03 AC 106 ms
53,480 KB
testcase_04 AC 126 ms
53,872 KB
testcase_05 AC 123 ms
53,744 KB
testcase_06 AC 112 ms
52,848 KB
testcase_07 AC 133 ms
53,756 KB
testcase_08 AC 122 ms
53,876 KB
testcase_09 AC 125 ms
54,080 KB
testcase_10 AC 130 ms
53,904 KB
testcase_11 AC 121 ms
53,748 KB
testcase_12 AC 126 ms
53,592 KB
testcase_13 AC 131 ms
53,652 KB
testcase_14 AC 133 ms
53,856 KB
testcase_15 AC 117 ms
53,008 KB
testcase_16 AC 116 ms
53,644 KB
testcase_17 AC 133 ms
53,468 KB
testcase_18 AC 116 ms
54,108 KB
testcase_19 AC 119 ms
54,048 KB
testcase_20 AC 109 ms
53,152 KB
testcase_21 AC 117 ms
53,448 KB
testcase_22 AC 126 ms
53,860 KB
testcase_23 AC 119 ms
54,216 KB
testcase_24 AC 119 ms
53,900 KB
testcase_25 AC 96 ms
52,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Kyotaku {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int sum=0,count=0;
        int[] c=new int[n];
        for(int i=0;i<n;i++){
            c[i]=sc.nextInt();
            sum+=c[i];
        }
        for(int i=0;i<n;i++)
            if(sum/10>=c[i])count++;
        System.out.println(count*30);
    }
}
0