結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-06 15:38:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 421 bytes |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 65,456 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 21:50:47 |
| 合計ジャッジ時間 | 1,220 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n, input, base, total=0, ans=0;
vector<int> c;
int i;
cin >> n;
for(i=0; i<n; ++i){
cin >> input;
c.push_back(input);
total+=input;
}
base=total*0.1;
sort(c.begin(), c.end());
for(i=0; i<n && c[i]<=base; ++i);
cout << i*30 << "\n";
return 0;
}