結果
問題 | No.191 供託金 |
ユーザー |
![]() |
提出日時 | 2015-04-26 22:22:07 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 141 ms / 5,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 2,399 ms |
コンパイル使用メモリ | 74,008 KB |
実行使用メモリ | 41,728 KB |
最終ジャッジ日時 | 2024-11-16 20:28:59 |
合計ジャッジ時間 | 6,671 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sum = 0; int[] c = new int[N]; for (int i = 0; i < c.length; i++) { c[i] = sc.nextInt(); sum += c[i]; } int out = 0; for (int i = 0; i < c.length; i++) { if (c[i] * 10 <= sum) { out++; } } System.out.println(out * 30); } }