結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-26 22:05:24 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 328µs | |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 79,296 KB |
| 実行使用メモリ | 9,832 KB |
| 最終ジャッジ日時 | 2026-09-25 00:31:01 |
| 合計ジャッジ時間 | 1,630 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> c(n, 0);
int total = 0;
for (int i = 0; i < n; i++) {
cin >> c[i];
total += c[i];
}
int mini = total / 10;
int ans = 0;
for (int i = 0; i < n; i++) {
if (c[i] <= mini) {
ans += 30;
}
}
cout << ans << endl;
return 0;
}