結果

問題 No.3216 Slightly Strong Fairies
ユーザー Tehom
提出日時 2025-08-17 18:21:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 612 bytes
コンパイル時間 3,759 ms
コンパイル使用メモリ 251,440 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-17 18:21:44
合計ジャッジ時間 5,117 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define ll long long
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define repl(i,a,b) for(ll i=(a);i<(b);i++)
#define all(a) (a).begin(),(a).end()

template <typename T> bool chmin(T &a,T b){if(a>b){a=b;return true;} return false;}
template <typename T> bool chmax(T &a,T b){if(a<b){a=b;return true;} return false;}

int main(){
  int n; cin >> n;
  vector<int> a(n);
  rep(i,0,n) cin >> a[i];
  int mean=0;
  rep(i,0,n) mean+=a[i];
  mean/=n;
  int ans=0;
  rep(i,0,n) if(mean+10<=a[i]) ans++;
  cout << ans << endl;
}
0