結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-31 12:56:59 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 147 ms / 5,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 2,344 ms |
| コンパイル使用メモリ | 74,260 KB |
| 実行使用メモリ | 41,960 KB |
| 最終ジャッジ日時 | 2024-11-16 22:06:37 |
| 合計ジャッジ時間 | 6,918 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
package yukicoder191;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
long[] c=new long[n];
long sum=0;
long kyo=0;
for(int i=0;i<n;i++){
c[i]=sc.nextLong();
sum+=c[i];
}
for(int i=0;i<n;i++){
if(10*c[i]<=sum)kyo+=30;
}
System.out.println(kyo);
}
}