結果

問題 No.191 供託金
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-25 17:08:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 458 bytes
コンパイル時間 3,969 ms
コンパイル使用メモリ 73,772 KB
実行使用メモリ 41,956 KB
最終ジャッジ日時 2024-04-28 08:31:55
合計ジャッジ時間 6,737 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
41,296 KB
testcase_01 AC 100 ms
39,996 KB
testcase_02 AC 111 ms
41,392 KB
testcase_03 AC 107 ms
41,376 KB
testcase_04 AC 117 ms
41,412 KB
testcase_05 AC 122 ms
41,616 KB
testcase_06 AC 123 ms
41,264 KB
testcase_07 AC 120 ms
41,512 KB
testcase_08 AC 101 ms
40,124 KB
testcase_09 AC 113 ms
41,284 KB
testcase_10 AC 124 ms
41,500 KB
testcase_11 AC 115 ms
41,496 KB
testcase_12 AC 108 ms
41,156 KB
testcase_13 AC 104 ms
40,592 KB
testcase_14 AC 129 ms
41,776 KB
testcase_15 AC 115 ms
41,388 KB
testcase_16 AC 106 ms
40,128 KB
testcase_17 AC 125 ms
41,956 KB
testcase_18 AC 130 ms
41,772 KB
testcase_19 AC 133 ms
41,568 KB
testcase_20 AC 120 ms
41,384 KB
testcase_21 AC 119 ms
41,664 KB
testcase_22 AC 121 ms
41,876 KB
testcase_23 AC 132 ms
41,900 KB
testcase_24 AC 113 ms
41,536 KB
testcase_25 AC 118 ms
41,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki191 {
	
	public static void main(String[] args ) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int c[] = new int[n];
		int total = 0;
		for (int i = 0; i < n; i++ ) {
			c[i] = scan.nextInt();
			total += c[i];
		}
		scan.close();
		int count = 0;
		for (int i = 0; i < n; i++ ) {
			if((total*0.1 >= c[i])) {
				count++;
			}
		}
		System.out.println(30*count);	
	}
}
0