結果

問題 No.191 供託金
ユーザー zaichu
提出日時 2015-12-18 23:26:30
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 365 bytes
コンパイル時間 656 ms
コンパイル使用メモリ 61,760 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 21:56:21
合計ジャッジ時間 1,330 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
#include <string>
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<int> data(n);
	for(auto &a:data) cin >> a;
	int sum = 0;
	for(auto a:data) sum += a;
	int ave = sum / 10;
	int count = 0;
	for(auto a:data){
		if(a <= ave) count++;
	}
	cout << 30 * count << endl;
	return 0;
}
0