結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
tntan
|
| 提出日時 | 2015-12-16 00:57:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 423 bytes |
| コンパイル時間 | 633 ms |
| コンパイル使用メモリ | 72,504 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 21:51:48 |
| 合計ジャッジ時間 | 1,510 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
#include<vector>
#include<cctype>
#include<algorithm>
#include<sstream>
using namespace std;
int main()
{
int n;
double a, sum = 0, ans = 0;
vector<double>v;
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> a;
v.push_back(a);
sum += a;
}
sum /= 10;
for (int i = 0; i < n; i++)if (v[i] <= sum)ans += 30;
cout << ans << endl;
return 0;
}
tntan