結果

問題 No.191 供託金
ユーザー ffmm00ffmm00
提出日時 2015-06-03 18:53:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 414 bytes
コンパイル時間 2,904 ms
コンパイル使用メモリ 74,096 KB
実行使用メモリ 41,996 KB
最終ジャッジ日時 2024-04-28 07:14:34
合計ジャッジ時間 7,053 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,088 KB
testcase_01 AC 107 ms
41,196 KB
testcase_02 AC 113 ms
41,064 KB
testcase_03 AC 123 ms
41,220 KB
testcase_04 AC 142 ms
41,504 KB
testcase_05 AC 131 ms
41,416 KB
testcase_06 AC 111 ms
41,996 KB
testcase_07 AC 125 ms
41,536 KB
testcase_08 AC 120 ms
41,492 KB
testcase_09 AC 130 ms
41,192 KB
testcase_10 AC 135 ms
41,464 KB
testcase_11 AC 129 ms
41,080 KB
testcase_12 AC 117 ms
39,956 KB
testcase_13 AC 135 ms
41,416 KB
testcase_14 AC 126 ms
41,580 KB
testcase_15 AC 117 ms
41,912 KB
testcase_16 AC 133 ms
41,656 KB
testcase_17 AC 131 ms
41,552 KB
testcase_18 AC 124 ms
41,184 KB
testcase_19 AC 135 ms
41,572 KB
testcase_20 AC 118 ms
41,568 KB
testcase_21 AC 134 ms
41,624 KB
testcase_22 AC 130 ms
41,344 KB
testcase_23 AC 132 ms
41,296 KB
testcase_24 AC 127 ms
41,356 KB
testcase_25 AC 119 ms
41,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N191 {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);

		int N = sca.nextInt(); // V > N/10
		int v = 0;
		int M = 0;
		int A = 0;

		int[] C = new int[N];

		for (int i = 0; i < N; i++) {
			C[i] = sca.nextInt();
			M += C[i];
		}

		for (int i = 0; i < N; i++) {
			if (C[i] <= (M / 10))
				A += 30;
		}

		System.out.println(A);

	}
}
0