結果

問題 No.191 供託金
ユーザー annonymousannonymous
提出日時 2018-07-10 17:21:08
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 56,908 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 11:44:39
合計ジャッジ時間 1,399 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<set>
using namespace std;
#include<iostream>
int	main(){

	int N, C, c[100], n;
	cin >> N;
	C = 0;
	n = 0;

	for (int i = 0; i <N; i++ ){
		cin >> c[i];
		C+= c[i];
	}

	for (int i = 0; i <N; i++ ){
		if (c[i] <= 0.1*C){
			n+= 30;
		}
	}
	cout << n << endl;
}
0