結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-21 22:37:38 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 5,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 2,961 ms |
| コンパイル使用メモリ | 74,156 KB |
| 実行使用メモリ | 41,864 KB |
| 最終ジャッジ日時 | 2024-09-19 19:59:11 |
| 合計ジャッジ時間 | 6,853 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
package m.shin;
import java.util.Scanner;
public class Con191 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N = s.nextInt() , total = 0 , money = 0;;
int[] C = new int[N];
for(int i = 0;i < N;i++){
C[i] = s.nextInt();
total += C[i];
}
s.close();
total /= 10;
for(int i = 0;i < N;i++){
if(C[i] <= total){
money += 30;
}
}
System.out.println(money);
}
}