結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-16 10:03:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 147 ms / 5,000 ms |
| コード長 | 521 bytes |
| コンパイル時間 | 2,569 ms |
| コンパイル使用メモリ | 74,008 KB |
| 実行使用メモリ | 54,364 KB |
| 最終ジャッジ日時 | 2024-09-13 01:17:48 |
| 合計ジャッジ時間 | 7,315 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
}