結果

問題 No.191 供託金
ユーザー YOSHIYOSHI
提出日時 2021-03-04 20:41:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 635 bytes
コンパイル時間 4,752 ms
コンパイル使用メモリ 79,884 KB
実行使用メモリ 38,248 KB
最終ジャッジ日時 2024-04-15 12:49:48
合計ジャッジ時間 7,894 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
38,052 KB
testcase_01 AC 79 ms
37,840 KB
testcase_02 AC 81 ms
38,032 KB
testcase_03 AC 78 ms
37,856 KB
testcase_04 AC 79 ms
37,728 KB
testcase_05 AC 85 ms
37,720 KB
testcase_06 AC 82 ms
37,916 KB
testcase_07 AC 79 ms
37,808 KB
testcase_08 AC 82 ms
38,180 KB
testcase_09 AC 79 ms
38,104 KB
testcase_10 AC 76 ms
37,680 KB
testcase_11 AC 78 ms
38,088 KB
testcase_12 AC 75 ms
37,984 KB
testcase_13 AC 78 ms
38,076 KB
testcase_14 AC 74 ms
37,800 KB
testcase_15 AC 80 ms
37,736 KB
testcase_16 AC 82 ms
37,760 KB
testcase_17 AC 84 ms
38,076 KB
testcase_18 AC 81 ms
38,248 KB
testcase_19 AC 74 ms
37,952 KB
testcase_20 AC 76 ms
38,044 KB
testcase_21 AC 77 ms
38,052 KB
testcase_22 AC 74 ms
37,788 KB
testcase_23 AC 79 ms
38,064 KB
testcase_24 AC 81 ms
37,904 KB
testcase_25 AC 76 ms
38,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.stream.Stream;

public class No00000191_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int[] intArr = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		int line = Arrays.stream(intArr).sum() / 10;
		int cnt = 0;
		for(int i = 0; i < n; i++) {
			if(line >= intArr[i] ) {
				cnt++;
			}
		}
		System.out.println(cnt * 30);
	}
}
0