結果

問題 No.191 供託金
ユーザー marumaru
提出日時 2016-03-23 01:53:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 461 bytes
コンパイル時間 3,328 ms
コンパイル使用メモリ 73,832 KB
実行使用メモリ 41,804 KB
最終ジャッジ日時 2024-04-28 08:20:51
合計ジャッジ時間 7,148 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
40,124 KB
testcase_01 AC 101 ms
40,108 KB
testcase_02 AC 112 ms
41,352 KB
testcase_03 AC 115 ms
41,116 KB
testcase_04 AC 120 ms
41,396 KB
testcase_05 AC 136 ms
41,804 KB
testcase_06 AC 109 ms
40,096 KB
testcase_07 AC 120 ms
41,284 KB
testcase_08 AC 116 ms
41,212 KB
testcase_09 AC 123 ms
41,116 KB
testcase_10 AC 127 ms
41,708 KB
testcase_11 AC 106 ms
40,208 KB
testcase_12 AC 112 ms
41,388 KB
testcase_13 AC 116 ms
40,148 KB
testcase_14 AC 123 ms
41,228 KB
testcase_15 AC 118 ms
41,220 KB
testcase_16 AC 116 ms
41,464 KB
testcase_17 AC 120 ms
40,916 KB
testcase_18 AC 116 ms
41,124 KB
testcase_19 AC 121 ms
41,452 KB
testcase_20 AC 107 ms
40,204 KB
testcase_21 AC 121 ms
41,252 KB
testcase_22 AC 126 ms
41,800 KB
testcase_23 AC 124 ms
41,740 KB
testcase_24 AC 118 ms
41,464 KB
testcase_25 AC 113 ms
41,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_191 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int[] c = new int[n];
		
		int sosu = 0;
		
		for (int i = 0; i < n; i++) {
			c[i] = stdIn.nextInt();
			sosu += c[i];
		}
		
		int yuko = sosu / 10;
		int ninzu = 0;
		
		for (int i = 0; i < n; i++) {
			if (c[i] <= yuko) {
				ninzu++;
			}
		}
		
		System.out.println(ninzu * 30);
	}
}
0