結果
問題 | No.191 供託金 |
ユーザー | Tsukasa_Type |
提出日時 | 2018-02-09 17:50:34 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 140 ms / 5,000 ms |
コード長 | 417 bytes |
コンパイル時間 | 2,147 ms |
コンパイル使用メモリ | 74,184 KB |
実行使用メモリ | 54,452 KB |
最終ジャッジ日時 | 2024-10-07 18:13:32 |
合計ジャッジ時間 | 6,367 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import java.util.*;public class Main {static Scanner sc = new Scanner(System.in);public static void main(String[] args) {int n = sc.nextInt();int[] ar = new int[n];int standard = 0;for (int i=0; i<n; i++) {ar[i] = sc.nextInt();standard += ar[i];}standard /= 10;int money = 0;for (int i=0; i<n; i++) {if (ar[i]<=standard) {money++;}}System.out.println(money*30);}}