結果

問題 No.191 供託金
ユーザー SuunnSuunn
提出日時 2018-11-22 09:19:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 396 bytes
コンパイル時間 1,988 ms
コンパイル使用メモリ 71,372 KB
実行使用メモリ 56,408 KB
最終ジャッジ日時 2023-08-26 02:49:04
合計ジャッジ時間 6,642 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,908 KB
testcase_01 AC 122 ms
55,376 KB
testcase_02 AC 121 ms
55,788 KB
testcase_03 AC 123 ms
56,148 KB
testcase_04 AC 132 ms
55,796 KB
testcase_05 AC 133 ms
56,056 KB
testcase_06 AC 131 ms
55,800 KB
testcase_07 AC 132 ms
55,760 KB
testcase_08 AC 123 ms
55,376 KB
testcase_09 AC 126 ms
55,592 KB
testcase_10 AC 135 ms
55,960 KB
testcase_11 AC 128 ms
55,764 KB
testcase_12 AC 124 ms
56,328 KB
testcase_13 AC 132 ms
55,896 KB
testcase_14 AC 133 ms
56,152 KB
testcase_15 AC 131 ms
55,840 KB
testcase_16 AC 128 ms
56,408 KB
testcase_17 AC 131 ms
56,280 KB
testcase_18 AC 125 ms
56,192 KB
testcase_19 AC 132 ms
56,276 KB
testcase_20 AC 130 ms
56,068 KB
testcase_21 AC 136 ms
55,896 KB
testcase_22 AC 133 ms
56,064 KB
testcase_23 AC 131 ms
55,668 KB
testcase_24 AC 127 ms
56,056 KB
testcase_25 AC 122 ms
56,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
	

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

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

}
0