結果
| 問題 |
No.3216 Slightly Strong Fairies
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 21:29:01 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 3,144 ms |
| コンパイル使用メモリ | 278,336 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-01 21:29:05 |
| 合計ジャッジ時間 | 3,631 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
signed main(){
cin.tie(0)->sync_with_stdio(0);
int N;cin>>N;
vector<int>A(N);
int sum=0;
for(auto&e:A){
cin>>e;
sum+=e;
}
int avg=sum/N;
int ans=0;
for(auto&e:A){
if(avg+100<=e)++ans;
}
cout<<ans<<endl;
}