結果
| 問題 | No.3216 Slightly Strong Fairies |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 21:25:28 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 222µs | |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 987 ms |
| コンパイル使用メモリ | 181,268 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-13 16:21:20 |
| 合計ジャッジ時間 | 2,288 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}