結果

問題 No.191 供託金
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2016-01-24 14:44:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 415 bytes
コンパイル時間 2,078 ms
コンパイル使用メモリ 74,084 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-28 08:18:39
合計ジャッジ時間 5,786 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,164 KB
testcase_01 AC 113 ms
40,804 KB
testcase_02 AC 116 ms
41,308 KB
testcase_03 AC 112 ms
41,056 KB
testcase_04 AC 124 ms
41,532 KB
testcase_05 AC 121 ms
41,132 KB
testcase_06 AC 108 ms
40,152 KB
testcase_07 AC 126 ms
41,124 KB
testcase_08 AC 114 ms
41,420 KB
testcase_09 AC 120 ms
41,548 KB
testcase_10 AC 127 ms
41,672 KB
testcase_11 AC 119 ms
41,052 KB
testcase_12 AC 124 ms
41,616 KB
testcase_13 AC 119 ms
40,352 KB
testcase_14 AC 129 ms
41,676 KB
testcase_15 AC 130 ms
41,372 KB
testcase_16 AC 126 ms
41,212 KB
testcase_17 AC 121 ms
40,908 KB
testcase_18 AC 126 ms
41,728 KB
testcase_19 AC 127 ms
41,476 KB
testcase_20 AC 116 ms
41,340 KB
testcase_21 AC 125 ms
41,852 KB
testcase_22 AC 133 ms
41,612 KB
testcase_23 AC 134 ms
41,376 KB
testcase_24 AC 117 ms
41,292 KB
testcase_25 AC 116 ms
41,132 KB
権限があれば一括ダウンロードができます

ソースコード

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+=C[i];
		}
		
		sum = sum / 10;
		
		int cnt = 0;
		
		for(int i = 0; i < N; i++) {
			if(C[i] <= sum) {
				cnt+=30;
			}
		}
		
		System.out.println(cnt);
	}
}
0