結果

問題 No.191 供託金
ユーザー kohaku_kohaku
提出日時 2016-11-13 05:59:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 488 bytes
コンパイル時間 2,022 ms
コンパイル使用メモリ 73,788 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-11-25 21:47:00
合計ジャッジ時間 6,084 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

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