結果

問題 No.191 供託金
ユーザー kaoetayakaoetaya
提出日時 2016-12-09 11:41:37
言語 Java19
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 481 bytes
コンパイル時間 3,474 ms
コンパイル使用メモリ 72,448 KB
実行使用メモリ 56,636 KB
最終ジャッジ日時 2023-08-19 03:09:47
合計ジャッジ時間 7,961 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,756 KB
testcase_01 AC 118 ms
56,312 KB
testcase_02 AC 112 ms
55,756 KB
testcase_03 AC 111 ms
55,912 KB
testcase_04 AC 122 ms
55,776 KB
testcase_05 AC 123 ms
56,532 KB
testcase_06 AC 121 ms
55,640 KB
testcase_07 AC 123 ms
55,676 KB
testcase_08 AC 113 ms
55,868 KB
testcase_09 AC 121 ms
55,880 KB
testcase_10 AC 120 ms
55,936 KB
testcase_11 AC 116 ms
55,860 KB
testcase_12 AC 117 ms
56,064 KB
testcase_13 AC 121 ms
55,808 KB
testcase_14 AC 122 ms
54,096 KB
testcase_15 AC 126 ms
55,652 KB
testcase_16 AC 127 ms
55,644 KB
testcase_17 AC 123 ms
56,636 KB
testcase_18 AC 112 ms
55,940 KB
testcase_19 AC 123 ms
55,672 KB
testcase_20 AC 119 ms
55,644 KB
testcase_21 AC 125 ms
56,032 KB
testcase_22 AC 130 ms
55,912 KB
testcase_23 AC 125 ms
55,644 KB
testcase_24 AC 124 ms
55,324 KB
testcase_25 AC 116 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int member[] = new int[n],sum = 0,count = 0,ave;

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

        ave = sum/10;

        for(int i=0;i<n;i++){
        	if(member[i] <= ave)
        		count++;
        }

        System.out.println((30*count));

    }
}
0