結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2016-08-18 23:13:41 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 408µs | |
| コード長 | 452 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 78,028 KB |
| 実行使用メモリ | 9,896 KB |
| 最終ジャッジ日時 | 2026-09-25 01:58:24 |
| 合計ジャッジ時間 | 1,990 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <numeric>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main()
{
int n;
cin >> n;
vector<int> gotou_teruki;
gotou_teruki.resize(n);
rep(i, n) {
cin >> gotou_teruki[i];
}
int sum = accumulate(gotou_teruki.begin(), gotou_teruki.end(),0);
double gomi = sum / 10.;
int money=0;
rep(i, n) {
if (gotou_teruki[i] <= gomi) money += 30;
}
cout << money << endl;
return 0;
}
kurenai3110