結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
kou6839
|
| 提出日時 | 2015-04-26 22:03:25 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 5,000 ms |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 2,089 ms |
| コンパイル使用メモリ | 84,060 KB |
| 実行使用メモリ | 45,676 KB |
| 最終ジャッジ日時 | 2026-05-12 01:49:35 |
| 合計ジャッジ時間 | 4,781 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args){
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double sum=0;
int[] pol = new int[n];
for(int i=0;i<n;i++){
int a = sc.nextInt();
sum+=a;
pol[i]=a;
}
sum/=10;
int ans=0;
for(int i=0;i<n;i++){
if(pol[i]<=sum){
ans+=30;
}
}
System.out.println(ans);
}
}
kou6839