結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-14 22:06:51 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| コード長 | 549 bytes |
| 記録 | |
| コンパイル時間 | 4,688 ms |
| コンパイル使用メモリ | 81,508 KB |
| 実行使用メモリ | 42,300 KB |
| 最終ジャッジ日時 | 2026-05-23 09:49:03 |
| 合計ジャッジ時間 | 7,639 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}