結果

問題 No.191 供託金
ユーザー TatsuDXTatsuDX
提出日時 2016-09-09 00:26:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 376 bytes
コンパイル時間 5,068 ms
コンパイル使用メモリ 75,488 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-04-28 10:06:19
合計ジャッジ時間 6,661 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
41,372 KB
testcase_01 AC 103 ms
40,476 KB
testcase_02 AC 113 ms
41,224 KB
testcase_03 AC 109 ms
41,176 KB
testcase_04 AC 120 ms
41,500 KB
testcase_05 AC 116 ms
41,356 KB
testcase_06 AC 106 ms
40,704 KB
testcase_07 AC 121 ms
41,264 KB
testcase_08 AC 112 ms
40,832 KB
testcase_09 AC 105 ms
40,456 KB
testcase_10 AC 122 ms
41,248 KB
testcase_11 AC 106 ms
40,432 KB
testcase_12 AC 101 ms
40,332 KB
testcase_13 AC 105 ms
39,744 KB
testcase_14 AC 117 ms
41,388 KB
testcase_15 AC 122 ms
40,976 KB
testcase_16 AC 114 ms
40,508 KB
testcase_17 AC 122 ms
41,548 KB
testcase_18 AC 104 ms
40,304 KB
testcase_19 AC 120 ms
41,344 KB
testcase_20 AC 112 ms
39,988 KB
testcase_21 AC 115 ms
41,120 KB
testcase_22 AC 124 ms
41,504 KB
testcase_23 AC 124 ms
41,420 KB
testcase_24 AC 118 ms
41,260 KB
testcase_25 AC 102 ms
40,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

		int n = sc.nextInt(), sum = 0, ans = 0;
		int[] m = new int[n];
		for(int i = 0; i < n; i++){
			m[i] = sc.nextInt();
			sum += m[i];
		}
		for(int i = 0; i < n; i++){
			if(m[i]*10 <= sum){
				ans++;
			}
		}
		System.out.println(ans*30);
	}
}
0