結果
問題 |
No.3216 Slightly Strong Fairies
|
ユーザー |
|
提出日時 | 2025-08-01 21:25:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 417 bytes |
コンパイル時間 | 1,256 ms |
コンパイル使用メモリ | 162,708 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-01 21:25:30 |
合計ジャッジ時間 | 2,116 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> P; #define REP(i,n) for(ll i=0;i<ll(n);i++) int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll i,j; ll N; cin >> N; vector<ll> a(N); ll s=0; REP(i,N){ cin >> a[i]; s+=a[i]; } ll L=s/N+100; ll ans=0; REP(i,N) if(a[i]>=L) ans++; cout << ans << endl; return 0; }