結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-26 22:05:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 405 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 61,012 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 20:23:54 |
| 合計ジャッジ時間 | 1,255 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}