結果
問題 | No.191 供託金 |
ユーザー |
|
提出日時 | 2018-03-14 22:06:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 143 ms / 5,000 ms |
コード長 | 549 bytes |
コンパイル時間 | 2,751 ms |
コンパイル使用メモリ | 75,024 KB |
実行使用メモリ | 41,612 KB |
最終ジャッジ日時 | 2024-11-29 15:14:15 |
合計ジャッジ時間 | 7,436 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int loops = in.nextInt(); int sum = 0; int[] arr = new int[101]; for(int i=0; i<loops; i++){ arr[i] += in.nextInt(); sum += arr[i]; } int money = sum / 10; int count = 0; for(int i=0; i<loops; i++){ if(arr[i] <= money) count++; } System.out.println(count * 30); } }