結果

問題 No.191 供託金
ユーザー latte0119latte0119
提出日時 2015-04-26 23:58:29
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 1,143 ms
コンパイル使用メモリ 157,800 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 20:29:34
合計ジャッジ時間 1,789 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    int N;
    int c[100];
    int sum=0;
    cin>>N;
    for(int i=0;i<N;i++){
        cin>>c[i];
        sum+=c[i];
    }

    int cnt=0;
    for(int i=0;i<N;i++){
        if(c[i]*10<=sum)cnt++;
    }
    cout<<30*cnt<<endl;
    return 0;
}
0