結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
ちよちゃん
|
| 提出日時 | 2016-05-25 17:08:36 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 5,000 ms |
| コード長 | 458 bytes |
| コンパイル時間 | 3,366 ms |
| コンパイル使用メモリ | 79,200 KB |
| 実行使用メモリ | 41,756 KB |
| 最終ジャッジ日時 | 2024-11-16 22:16:42 |
| 合計ジャッジ時間 | 7,884 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}
ちよちゃん