結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-10 17:35:41 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 5,000 ms |
| + 925µs | |
| コード長 | 512 bytes |
| 記録 | |
| コンパイル時間 | 1,576 ms |
| コンパイル使用メモリ | 84,216 KB |
| 実行使用メモリ | 45,828 KB |
| 最終ジャッジ日時 | 2026-08-23 11:02:35 |
| 合計ジャッジ時間 | 4,731 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] arr = new int[n];
int sum = 0;
for (int i = 0; i < n; i++) {
arr[i] = sc.nextInt();
sum += arr[i];
}
int ans = 0;
for (int i = 0; i < n; i++) {
if (arr[i] * 10 <= sum) {
ans += 30;
}
}
System.out.println(ans);
}
}
tenten