結果

問題 No.191 供託金
ユーザー shinwisteriashinwisteria
提出日時 2018-02-21 22:37:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 3,317 ms
コンパイル使用メモリ 75,244 KB
実行使用メモリ 57,884 KB
最終ジャッジ日時 2023-10-20 00:06:14
合計ジャッジ時間 7,407 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,480 KB
testcase_01 AC 113 ms
56,180 KB
testcase_02 AC 125 ms
57,396 KB
testcase_03 AC 124 ms
57,116 KB
testcase_04 AC 135 ms
57,684 KB
testcase_05 AC 135 ms
57,652 KB
testcase_06 AC 135 ms
57,644 KB
testcase_07 AC 136 ms
57,584 KB
testcase_08 AC 129 ms
57,648 KB
testcase_09 AC 131 ms
57,652 KB
testcase_10 AC 135 ms
57,640 KB
testcase_11 AC 119 ms
56,276 KB
testcase_12 AC 129 ms
57,640 KB
testcase_13 AC 124 ms
56,252 KB
testcase_14 AC 135 ms
57,548 KB
testcase_15 AC 133 ms
57,684 KB
testcase_16 AC 133 ms
57,884 KB
testcase_17 AC 141 ms
57,648 KB
testcase_18 AC 129 ms
57,648 KB
testcase_19 AC 131 ms
57,708 KB
testcase_20 AC 132 ms
57,708 KB
testcase_21 AC 133 ms
57,648 KB
testcase_22 AC 135 ms
57,744 KB
testcase_23 AC 136 ms
57,780 KB
testcase_24 AC 130 ms
57,304 KB
testcase_25 AC 123 ms
57,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con191 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt() , total = 0 , money = 0;;
		int[] C = new int[N];
		for(int i = 0;i < N;i++){
			C[i] = s.nextInt();
			total += C[i];
		}
		s.close();
		total /= 10;
		for(int i = 0;i < N;i++){
			if(C[i] <= total){
				money += 30;
			}
		}
		System.out.println(money);

	}

}
0