結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-04-29 18:54:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 711 ms |
| コンパイル使用メモリ | 76,064 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 22:09:51 |
| 合計ジャッジ時間 | 1,602 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
int main(void){
int N; cin>>N;
vector<int> c(N);
for(int i=0;i<N;i++) cin>>c[i];
sort(c.begin(),c.end());
int sum=accumulate(c.begin(),c.end(),0);
int i;
for(i=0;i<N;i++){
if(c[i]>sum/10) break;
}
cout<<30*i<<endl;
}
sekiya9311