結果

問題 No.191 供託金
ユーザー Mcpu3Mcpu3
提出日時 2018-06-21 23:41:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 71,532 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-13 07:43:10
合計ジャッジ時間 7,157 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,048 KB
testcase_01 AC 128 ms
55,836 KB
testcase_02 AC 127 ms
55,684 KB
testcase_03 AC 127 ms
55,684 KB
testcase_04 AC 138 ms
55,640 KB
testcase_05 AC 138 ms
55,636 KB
testcase_06 AC 138 ms
55,620 KB
testcase_07 AC 136 ms
55,832 KB
testcase_08 AC 130 ms
55,796 KB
testcase_09 AC 132 ms
53,700 KB
testcase_10 AC 137 ms
55,864 KB
testcase_11 AC 133 ms
55,648 KB
testcase_12 AC 129 ms
56,008 KB
testcase_13 AC 137 ms
56,320 KB
testcase_14 AC 138 ms
55,796 KB
testcase_15 AC 136 ms
55,632 KB
testcase_16 AC 134 ms
55,692 KB
testcase_17 AC 137 ms
55,636 KB
testcase_18 AC 130 ms
55,912 KB
testcase_19 AC 137 ms
56,064 KB
testcase_20 AC 134 ms
55,920 KB
testcase_21 AC 137 ms
56,036 KB
testcase_22 AC 138 ms
55,780 KB
testcase_23 AC 136 ms
55,484 KB
testcase_24 AC 134 ms
55,720 KB
testcase_25 AC 128 ms
55,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no191{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int i,s=0,a=0,c[]=new int[100],n;
		n=stdIn.nextInt();
		for(i=0;i<n;i++) {
			c[i]=stdIn.nextInt();
			s+=c[i];
		}
		for(i=0;i<n;i++) if(c[i]<=s/10) a++;
		System.out.print(30*a);
	}
}
0