結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-16 10:03:09 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| コード長 | 521 bytes |
| 記録 | |
| コンパイル時間 | 2,697 ms |
| コンパイル使用メモリ | 84,336 KB |
| 実行使用メモリ | 41,796 KB |
| 最終ジャッジ日時 | 2026-04-04 02:35:37 |
| 合計ジャッジ時間 | 5,015 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int [] c =new int[n];
int ans=0;
int count=0;
for ( int i=0; i<n; i++){
c[i]=sc.nextInt();
ans+=c[i];
}
ans=ans/10;
for(int i=0; i<n; i++){
if( ans >=c[i]){
count++;
}
}
System.out.println(30*count);
sc.close();
}
}