結果

問題 No.191 供託金
ユーザー fal_rndfal_rnd
提出日時 2017-02-04 18:41:27
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 333 bytes
コンパイル時間 1,526 ms
コンパイル使用メモリ 158,320 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 06:17:28
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

const char en = '\n';
using  ll =          long long;
using ull = unsigned long long;

int main() {
	int n,sum=0,result=0;
	cin>>n;

	vector<int> in(n);

	for(auto& i:in){
		cin>>i;
		sum+=i;
	}
	sum/=10;
	for(auto i:in){
		if(i<=sum) result++;
	}

	cout<<result*30<<en;

	return 0;
}
0