結果

問題 No.191 供託金
ユーザー kuramukuramu
提出日時 2016-01-26 00:02:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 738 bytes
コンパイル時間 1,738 ms
コンパイル使用メモリ 73,432 KB
実行使用メモリ 37,164 KB
最終ジャッジ日時 2024-04-28 08:18:54
合計ジャッジ時間 3,672 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
36,644 KB
testcase_01 AC 44 ms
36,924 KB
testcase_02 AC 45 ms
36,632 KB
testcase_03 AC 46 ms
36,528 KB
testcase_04 AC 47 ms
36,796 KB
testcase_05 AC 44 ms
37,004 KB
testcase_06 AC 43 ms
36,672 KB
testcase_07 AC 43 ms
36,832 KB
testcase_08 AC 44 ms
36,640 KB
testcase_09 AC 45 ms
36,632 KB
testcase_10 AC 44 ms
36,836 KB
testcase_11 AC 46 ms
37,000 KB
testcase_12 AC 43 ms
36,892 KB
testcase_13 AC 45 ms
37,004 KB
testcase_14 AC 46 ms
36,840 KB
testcase_15 AC 43 ms
36,836 KB
testcase_16 AC 45 ms
36,924 KB
testcase_17 AC 45 ms
37,164 KB
testcase_18 AC 44 ms
36,632 KB
testcase_19 AC 44 ms
36,644 KB
testcase_20 AC 44 ms
36,668 KB
testcase_21 AC 47 ms
36,892 KB
testcase_22 AC 46 ms
36,964 KB
testcase_23 AC 45 ms
36,848 KB
testcase_24 AC 45 ms
36,628 KB
testcase_25 AC 45 ms
37,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
	      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
	      try {
	    	int n = Integer.parseInt(stdReader.readLine());
	    	int sum = 0;
	    	int count = 0;
	    	String[] temps = stdReader.readLine().split(" ");
	    	int[] num = new int[n];
	    	for(int i=0;i<n;i++){
	    		num[i]= Integer.parseInt(temps[i]);
	    		sum += num[i];
	    	}
	    	sum /= 10;
	    	for(int i=0;i<n;i++){
	    		if(num[i]<=sum) count++;
	    	}
	    	
	    	System.out.println(count*30);
	      } catch (IOException e) {
			e.printStackTrace();
	      }
	}

}
0