結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-10 00:16:19 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 385 bytes |
| コンパイル時間 | 3,047 ms |
| コンパイル使用メモリ | 74,416 KB |
| 実行使用メモリ | 54,240 KB |
| 最終ジャッジ日時 | 2024-10-07 16:04:43 |
| 合計ジャッジ時間 | 7,163 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 1 |
ソースコード
import java.util.Scanner;
public class Kyotaku{
public static void main(String arg[]){
int n,sum=0,res=0;
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
int[] c = new int[n];
for(int i = 0;i<n;i++){
c[i] = sc.nextInt();
sum = sum + c[i];
}
for(int i = 0;i<n;i++){
if((double)c[i] / (double)sum <= 0.1)res = res + 30;
}
System.out.println(res);
}
}