結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2018-01-23 17:40:08 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 668 ms |
コンパイル使用メモリ | 61,692 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 03:09:55 |
合計ジャッジ時間 | 1,750 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 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*10; return 0; }