結果

問題 No.191 供託金
ユーザー 古寺いろは
提出日時 2015-04-26 22:01:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 1,258 ms
コンパイル使用メモリ 160,124 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-07 15:45:58
合計ジャッジ時間 2,128 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
	int N;
	cin >> N;
	vector<int> A(N);
	int sum = 0;
	for (int i = 0; i < N; i++)
	{
		cin >> A[i];
		sum += A[i];
	}
	int ans = 0;
	for (int i = 0; i < N; i++)
	{
		if (A[i] * 10 > sum) ans += 30;
	}
	cout << ans << endl;
}
0