結果
| 問題 | 
                            No.191 供託金
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ninoinui
                         | 
                    
| 提出日時 | 2020-01-16 10:14:34 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 286 bytes | 
| コンパイル時間 | 1,684 ms | 
| コンパイル使用メモリ | 168,836 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-23 10:48:34 | 
| 合計ジャッジ時間 | 2,544 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> C(N);
  int x = 0, y = 0;
  for (int i = 0; i < N; i++) {
    cin >> C.at(i);
    x += C.at(i);
  }
  x /= 10;
  for (int i = 0; i < N; i++) if (C.at(i) <= x) y++;
  cout << y * 30 << "\n";
}
            
            
            
        
            
ninoinui