結果
問題 | No.191 供託金 |
ユーザー |
![]() |
提出日時 | 2018-01-23 17:41:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 721 ms |
コンパイル使用メモリ | 61,660 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 03:10:07 |
合計ジャッジ時間 | 1,958 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<cstdio> using namespace std; int main(){ int N,x,sum=0,ans=0; vector<int> vc; cin >> N; for(int i=0;i<N;i++){ cin >> x; vc.push_back(x); sum+=x; } for(int i=0;i<N;i++){ if(vc[i]*10<=sum) ans++; } cout << ans*30; return 0; }