結果

問題 No.191 供託金
ユーザー tapioka324
提出日時 2020-05-28 23:45:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 431 bytes
コンパイル時間 1,483 ms
コンパイル使用メモリ 167,464 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-13 14:31:21
合計ジャッジ時間 2,334 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"

int main() {
    int n;
    cin >> n;
    int sum = 0;
    vector<int> c(n);
    for (int i = 0; i < n; ++i) {
        int x;
        cin >> x;
        sum += x;
        c[i] = x;
    }
    int ave = sum / 10;
    int cnt = 0;
    for (int i = 0; i < n; ++i) {
        if (c[i] <= ave) cnt++;
    }
    cout << 30 * cnt << endl;

    return 0;
}
0