結果
問題 | No.191 供託金 |
ユーザー |
![]() |
提出日時 | 2015-04-27 11:16:23 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 129 ms / 5,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 2,176 ms |
コンパイル使用メモリ | 74,792 KB |
実行使用メモリ | 41,536 KB |
最終ジャッジ日時 | 2024-11-16 20:29:55 |
合計ジャッジ時間 | 5,738 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n= koko.nextInt(); int[] c = new int[n]; int total=0; int count=0; for(int i=0; i<n; i++){ c[i]=koko.nextInt(); total = total +c[i]; } for(int i=0; i<n; i++){ if(c[i]<=total/10){ count++; } } System.out.println(count*30); } }