結果

問題 No.191 供託金
ユーザー len_proglen_prog
提出日時 2016-06-08 10:57:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 532 bytes
コンパイル時間 1,761 ms
コンパイル使用メモリ 74,072 KB
実行使用メモリ 41,636 KB
最終ジャッジ日時 2024-04-28 08:35:00
合計ジャッジ時間 5,591 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
41,080 KB
testcase_01 AC 115 ms
41,148 KB
testcase_02 AC 113 ms
41,156 KB
testcase_03 AC 98 ms
40,364 KB
testcase_04 AC 126 ms
41,144 KB
testcase_05 AC 120 ms
41,424 KB
testcase_06 AC 116 ms
41,264 KB
testcase_07 AC 121 ms
41,636 KB
testcase_08 AC 107 ms
41,148 KB
testcase_09 AC 112 ms
41,084 KB
testcase_10 AC 120 ms
41,404 KB
testcase_11 AC 108 ms
40,200 KB
testcase_12 AC 105 ms
41,028 KB
testcase_13 AC 129 ms
41,464 KB
testcase_14 AC 120 ms
41,316 KB
testcase_15 AC 122 ms
41,360 KB
testcase_16 AC 104 ms
40,632 KB
testcase_17 AC 117 ms
41,460 KB
testcase_18 AC 106 ms
40,168 KB
testcase_19 AC 125 ms
41,380 KB
testcase_20 AC 120 ms
41,420 KB
testcase_21 AC 131 ms
41,416 KB
testcase_22 AC 123 ms
41,492 KB
testcase_23 AC 125 ms
41,184 KB
testcase_24 AC 104 ms
40,408 KB
testcase_25 AC 111 ms
41,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] voteobNum = new int[N];
		int voteTotal = 0;

		for(int i = 0; i < N; i++){
			voteobNum[i] = scan.nextInt();
			voteTotal += voteobNum[i];
		}

		int evaluationCriteria = voteTotal / 10;
		int depositTotal = 0;

		for(int i = 0; i < N; i++){
			if(voteobNum[i] <= evaluationCriteria) depositTotal += 30;
		}

		System.out.println(depositTotal);
		scan.close();
	}

}
0