結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-04-29 18:54:18 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 489 ms |
| コンパイル使用メモリ | 93,448 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-12 03:26:23 |
| 合計ジャッジ時間 | 1,513 ms |
|
ジャッジサーバーID (参考情報) |
tmp-judge_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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