結果

問題 No.191 供託金
ユーザー TatsuDXTatsuDX
提出日時 2016-09-09 00:26:39
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 376 bytes
コンパイル時間 3,155 ms
コンパイル使用メモリ 74,700 KB
実行使用メモリ 41,420 KB
最終ジャッジ日時 2024-11-17 00:05:42
合計ジャッジ時間 7,273 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

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