結果
| 問題 |
No.3216 Slightly Strong Fairies
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 22:07:42 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,266 bytes |
| コンパイル時間 | 13,418 ms |
| コンパイル使用メモリ | 271,056 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-01 22:07:58 |
| 合計ジャッジ時間 | 14,011 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define INF 1LL<<60
#define MOD 998244353
#define MMOD 1000000007
using mint=modint998244353;
using ll=long long;
using ull=unsigned long long;
using ld=long double;
template<typename T> using vc=vector<T>;
template<typename T> using vv=vc<vc<T>>;
using vl=vector<ll>;
using vvl=vv<ll>;
using vs=vc<string>;
using vvs=vv<string>;
using vb=vc<bool>;
using vvb=vv<bool>;
using lP=pair<ll,ll>;
using vlp=vc<lP>;
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;}
#define YES cout<<"Yes"<<endl
#define NO cout<<"No"<<endl
#define YN {cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
#define all(a) a.begin(),a.end()
void vlprint(vl a){
for(ll x:a) cout<<x<<' ';
cout<<endl;
}
struct Edge {
ll to;
ll weight;
Edge(ll t, ll w) : to(t), weight(w) { }
};
using Graph=vector<vector<Edge>>;
vl dx={0,0,1,-1};
vl dy={1,-1,0,0};
int main() {
ll n;
cin>>n;
vl a(n);
ll ave=0;
for(int i=0;i<n;i++) cin>>a[i],ave+=a[i];
ave/=n;
ll ans=0;
for(ll i=0;i<n;i++) if(ave+100<=a[i]) ans++;
cout<<ans<<endl;
}