結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
kya_ski
|
| 提出日時 | 2020-04-16 14:45:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 1,505 ms |
| コンパイル使用メモリ | 167,484 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 19:17:43 |
| 合計ジャッジ時間 | 2,485 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / 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 &e : c) cin >> e;
int all = accumulate(c.begin(), c.end(), 0);
int ans = 0;
for (const int &e : c) {
ans += (all >= e * 10);
}
cout << ans * 30 << '\n';
return 0;
}
kya_ski