結果

問題 No.191 供託金
ユーザー himohimo
提出日時 2019-09-20 16:56:21
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 255 bytes
コンパイル時間 1,323 ms
コンパイル使用メモリ 161,220 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 07:49:10
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

int main(){
int n;
cin >>n;
vector<int>a(n);
int che =0;
for(int i=0;i<n;i++){
    cin >> a.at(i);
    che+=a.at(i);
}
int ans =0;
for(int i=0;i<n;i++){
    if(che/10>=a.at(i))ans+=30;
}
cout << ans <<endl;
}
0