結果

問題 No.191 供託金
ユーザー SuunnSuunn
提出日時 2018-11-22 09:19:14
言語 Java
(openjdk 23)
結果
AC  
実行時間 168 ms / 5,000 ms
コード長 396 bytes
コンパイル時間 2,484 ms
コンパイル使用メモリ 74,408 KB
実行使用メモリ 41,468 KB
最終ジャッジ日時 2024-12-24 16:15:28
合計ジャッジ時間 7,594 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

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