結果

問題 No.191 供託金
ユーザー alpha_virginis
提出日時 2015-04-26 22:05:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 419 bytes
コンパイル時間 1,131 ms
コンパイル使用メモリ 159,856 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 20:23:58
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main() {
  
  int N;
  std::vector<int> c;
  int total = 0;
  int ans = 0;
  int temp;

  std::cin >> N;
  for(int i = 0; i < N; ++i) {
    std::cin >> temp;
    c.push_back(temp);
  }

  for(int i = 0; i < N; ++i) {
    total += c[i];
  }

  for(int i = 0; i < N; ++i) {
    if( c[i] <= total/10 ) {
      ++ans;
    }
  }

  ans *= 30;

  std::cout << ans << std::endl;

  return 0;  
}
0