結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
kya_ski
|
| 提出日時 | 2020-04-16 14:45:14 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 331 bytes |
| 記録 | |
| コンパイル時間 | 1,172 ms |
| コンパイル使用メモリ | 180,936 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-18 01:16:08 |
| 合計ジャッジ時間 | 2,865 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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