結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-08-05 22:04:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 514 bytes |
| コンパイル時間 | 1,584 ms |
| コンパイル使用メモリ | 157,408 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 20:43:51 |
| 合計ジャッジ時間 | 2,654 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
#define int long long
using namespace std;
typedef long long ll;
typedef vector<vector<ll>> mat;
const int INF = 1e9;
signed main()
{
int N;
int C[110];
cin >> N;
int sum = 0;
REP(i,N) {
cin >> C[i];
sum += C[i];
}
int ans = 0;
REP(i,N) {
if (10 * C[i] <= sum) {
ans += 30;
}
}
cout << ans << endl;
}
hiyokko2