結果

問題 No.191 供託金
ユーザー Shawn stayC
提出日時 2020-05-25 22:44:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 1,358 ms
コンパイル使用メモリ 168,608 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-13 02:18:19
合計ジャッジ時間 2,125 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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(){
	int n; cin>>n;
	vector<int> v(n);
	rep(i,n) cin>>v[i];
	int b=accumulate(v.begin(), v.end(), 0) /10;
	int cnt=0;
	for(auto x:v) if(x<=b) cnt++;
	cout << cnt*30 << endl;	
}
0