結果

問題 No.191 供託金
ユーザー k_kadorak_kadora
提出日時 2015-06-10 00:16:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 3,426 ms
コンパイル使用メモリ 74,748 KB
実行使用メモリ 41,696 KB
最終ジャッジ日時 2024-04-16 17:33:13
合計ジャッジ時間 7,802 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
40,116 KB
testcase_01 AC 127 ms
41,400 KB
testcase_02 AC 126 ms
41,164 KB
testcase_03 AC 125 ms
41,668 KB
testcase_04 AC 137 ms
41,492 KB
testcase_05 AC 138 ms
41,472 KB
testcase_06 AC 122 ms
40,100 KB
testcase_07 AC 139 ms
41,604 KB
testcase_08 AC 130 ms
41,280 KB
testcase_09 AC 134 ms
41,628 KB
testcase_10 AC 140 ms
41,436 KB
testcase_11 AC 119 ms
40,356 KB
testcase_12 AC 138 ms
41,492 KB
testcase_13 AC 136 ms
41,336 KB
testcase_14 AC 136 ms
41,360 KB
testcase_15 AC 133 ms
41,028 KB
testcase_16 AC 134 ms
41,160 KB
testcase_17 AC 137 ms
41,408 KB
testcase_18 AC 116 ms
40,268 KB
testcase_19 AC 139 ms
41,304 KB
testcase_20 AC 134 ms
41,696 KB
testcase_21 AC 141 ms
41,512 KB
testcase_22 AC 139 ms
41,252 KB
testcase_23 AC 140 ms
41,140 KB
testcase_24 AC 138 ms
41,320 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Kyotaku{
	public static void main(String arg[]){
		int n,sum=0,res=0;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		int[] c = new int[n];
		for(int i = 0;i<n;i++){
			c[i] = sc.nextInt();
			sum = sum + c[i];
		}
		for(int i = 0;i<n;i++){
			if((double)c[i]  / (double)sum <= 0.1)res = res + 30;
		}
		System.out.println(res);
	}
}
0