結果
問題 |
No.3216 Slightly Strong Fairies
|
ユーザー |
|
提出日時 | 2025-08-01 21:30:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 3,038 ms |
コンパイル使用メモリ | 277,916 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-01 21:30:11 |
合計ジャッジ時間 | 3,915 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long int #define endl "\n" signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n;cin>>n; int c=0,s=0; vector<int> a(n); for(int i=0;i<n;i++){ cin>>a[i]; s += a[i]; c++; } int y = s/c; int ans=0; for(int i=0;i<n;i++){ if(a[i]>=y+100)ans++; } cout<<ans; return 0; }