結果

問題 No.191 供託金
ユーザー 37zigen37zigen
提出日時 2016-03-31 12:56:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 379 bytes
コンパイル時間 2,034 ms
コンパイル使用メモリ 74,116 KB
実行使用メモリ 54,092 KB
最終ジャッジ日時 2024-04-28 08:22:46
合計ジャッジ時間 5,781 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
53,696 KB
testcase_01 AC 118 ms
53,676 KB
testcase_02 AC 117 ms
54,024 KB
testcase_03 AC 117 ms
53,660 KB
testcase_04 AC 125 ms
53,932 KB
testcase_05 AC 125 ms
53,840 KB
testcase_06 AC 126 ms
53,596 KB
testcase_07 AC 122 ms
53,796 KB
testcase_08 AC 117 ms
53,440 KB
testcase_09 AC 116 ms
53,728 KB
testcase_10 AC 118 ms
53,752 KB
testcase_11 AC 121 ms
53,784 KB
testcase_12 AC 119 ms
53,872 KB
testcase_13 AC 111 ms
53,932 KB
testcase_14 AC 122 ms
53,828 KB
testcase_15 AC 127 ms
53,764 KB
testcase_16 AC 125 ms
53,912 KB
testcase_17 AC 127 ms
54,036 KB
testcase_18 AC 118 ms
53,740 KB
testcase_19 AC 127 ms
54,040 KB
testcase_20 AC 119 ms
53,828 KB
testcase_21 AC 133 ms
54,092 KB
testcase_22 AC 132 ms
54,064 KB
testcase_23 AC 124 ms
53,876 KB
testcase_24 AC 105 ms
52,728 KB
testcase_25 AC 116 ms
53,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder191;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		long[] c=new long[n];
		long sum=0;
		long kyo=0;
		for(int i=0;i<n;i++){
			c[i]=sc.nextLong();
			sum+=c[i];
		}
		for(int i=0;i<n;i++){
			if(10*c[i]<=sum)kyo+=30;
		}
		
		System.out.println(kyo);
		
	}
}
0