結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
not_522
|
| 提出日時 | 2015-07-15 01:40:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 159,612 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 20:54:06 |
| 合計ジャッジ時間 | 2,217 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> c(n);
for (int& i : c) cin >> i;
int sum = accumulate(c.begin(), c.end(), 0);
cout << 30 * count_if(c.begin(), c.end(), [&](int i){return i <= sum / 10;}) << endl;
}
not_522