結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
ちよちゃん
|
| 提出日時 | 2016-05-25 17:08:36 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 5,000 ms |
| コード長 | 458 bytes |
| 記録 | |
| コンパイル時間 | 4,070 ms |
| コンパイル使用メモリ | 82,108 KB |
| 実行使用メモリ | 47,544 KB |
| 最終ジャッジ日時 | 2026-05-12 03:29:08 |
| 合計ジャッジ時間 | 12,098 ms |
|
ジャッジサーバーID (参考情報) |
tmp-judge_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
package yukicoder;
import java.util.Scanner;
public class Yuki191 {
public static void main(String[] args ) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int c[] = new int[n];
int total = 0;
for (int i = 0; i < n; i++ ) {
c[i] = scan.nextInt();
total += c[i];
}
scan.close();
int count = 0;
for (int i = 0; i < n; i++ ) {
if((total*0.1 >= c[i])) {
count++;
}
}
System.out.println(30*count);
}
}
ちよちゃん