結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
kou6839
|
| 提出日時 | 2015-04-26 22:03:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 5,000 ms |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 1,971 ms |
| コンパイル使用メモリ | 73,764 KB |
| 実行使用メモリ | 41,772 KB |
| 最終ジャッジ日時 | 2024-11-16 20:20:45 |
| 合計ジャッジ時間 | 6,099 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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