結果

問題 No.191 供託金
ユーザー yun_appyun_app
提出日時 2016-05-12 12:30:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 815 bytes
コンパイル時間 2,159 ms
コンパイル使用メモリ 75,572 KB
実行使用メモリ 43,720 KB
最終ジャッジ日時 2024-04-28 08:27:36
合計ジャッジ時間 4,494 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
37,060 KB
testcase_01 AC 51 ms
36,500 KB
testcase_02 AC 51 ms
37,052 KB
testcase_03 AC 53 ms
36,624 KB
testcase_04 AC 56 ms
37,096 KB
testcase_05 AC 52 ms
36,840 KB
testcase_06 AC 55 ms
36,872 KB
testcase_07 AC 56 ms
36,916 KB
testcase_08 AC 55 ms
36,784 KB
testcase_09 AC 55 ms
37,100 KB
testcase_10 AC 55 ms
43,720 KB
testcase_11 AC 51 ms
37,088 KB
testcase_12 AC 52 ms
36,452 KB
testcase_13 AC 53 ms
36,620 KB
testcase_14 AC 51 ms
36,848 KB
testcase_15 AC 50 ms
36,792 KB
testcase_16 AC 51 ms
37,188 KB
testcase_17 AC 52 ms
36,824 KB
testcase_18 AC 52 ms
36,472 KB
testcase_19 AC 51 ms
36,908 KB
testcase_20 AC 51 ms
36,496 KB
testcase_21 AC 52 ms
36,904 KB
testcase_22 AC 52 ms
36,896 KB
testcase_23 AC 55 ms
36,896 KB
testcase_24 AC 53 ms
36,704 KB
testcase_25 AC 53 ms
36,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] lines = br.readLine().split(" ");
        
        int sum = 0;
        for(String st:lines){
            sum += Integer.parseInt(st);
        }
        int border = sum/10;
        int ans = 0;
        for(String st:lines){
            int c = Integer.parseInt(st);
            ans += c<=border?30:0;
        }
        
        System.out.println(ans);
    }
}
0