結果

問題 No.191 供託金
ユーザー TatsuDX
提出日時 2016-09-09 00:24:44
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 5,085 ms
コンパイル使用メモリ 80,020 KB
実行使用メモリ 56,008 KB
最終ジャッジ日時 2024-11-15 22:48:07
合計ジャッジ時間 10,365 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 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 += m[i];
			}
		}
		System.out.println(ans);
	}
}
0