結果

問題 No.191 供託金
ユーザー 水野嶺水野嶺
提出日時 2020-05-28 16:55:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 453 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 41,892 KB
最終ジャッジ日時 2024-04-21 05:44:02
合計ジャッジ時間 6,222 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
41,196 KB
testcase_01 AC 111 ms
41,292 KB
testcase_02 AC 116 ms
40,020 KB
testcase_03 AC 115 ms
40,192 KB
testcase_04 AC 134 ms
41,464 KB
testcase_05 AC 134 ms
41,412 KB
testcase_06 AC 116 ms
41,440 KB
testcase_07 AC 131 ms
41,508 KB
testcase_08 AC 111 ms
41,172 KB
testcase_09 AC 127 ms
41,140 KB
testcase_10 AC 131 ms
41,576 KB
testcase_11 AC 121 ms
41,320 KB
testcase_12 AC 125 ms
41,160 KB
testcase_13 AC 130 ms
41,672 KB
testcase_14 AC 137 ms
41,508 KB
testcase_15 AC 122 ms
40,000 KB
testcase_16 AC 116 ms
41,420 KB
testcase_17 AC 135 ms
41,820 KB
testcase_18 AC 118 ms
40,160 KB
testcase_19 AC 137 ms
41,416 KB
testcase_20 AC 137 ms
41,544 KB
testcase_21 AC 136 ms
41,760 KB
testcase_22 AC 136 ms
41,852 KB
testcase_23 AC 137 ms
41,892 KB
testcase_24 AC 130 ms
41,424 KB
testcase_25 AC 122 ms
41,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) 
	{
		// 入力値の読み込み
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int hyoukei=0;
		int count =0;
		int[] b = new int[a];
		
		for(int i=0;i<a;i++){
			b[i] = sc.nextInt();
			hyoukei += b[i];
		}
		
		for(int i=0;i<a;i++){
			if(b[i]*10 <= hyoukei)
			count += 1;
		}
		
		System.out.println(30*count);
	}
}
0