結果

問題 No.191 供託金
ユーザー rogi52
提出日時 2020-11-25 10:21:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 379 bytes
コンパイル時間 1,612 ms
コンパイル使用メモリ 168,056 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 19:15:46
合計ジャッジ時間 2,424 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);

    ll N; cin >> N;
    vector<int> C(N);
    ll s = 0;
    rep(i,N){
        cin >> C[i];
        s += C[i];
    }

    ll ans = 0;
    rep(i,N) if(C[i] * 10 <= s) ans += 1;
    cout << ans * 30 << endl;
}
0