結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
weaken
|
| 提出日時 | 2020-10-09 06:59:43 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 400 bytes |
| コンパイル時間 | 1,873 ms |
| コンパイル使用メモリ | 193,724 KB |
| 最終ジャッジ日時 | 2025-01-15 03:35:30 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
using namespace std;
int main() {
fastIO;
int n;
cin >> n;
vector<int> C(n);
int sum = 0;
for (int i = 0; i < n; ++i) {
cin >> C[i];
sum += C[i];
}
int ans = 0;
for (const auto c : C) {
if (c <= sum / 10) {
ans += 30;
}
}
cout << ans << '\n';
return 0;
}
weaken