結果
| 問題 |
No.3216 Slightly Strong Fairies
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 21:25:12 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 480 bytes |
| コンパイル時間 | 2,991 ms |
| コンパイル使用メモリ | 278,240 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-01 21:25:18 |
| 合計ジャッジ時間 | 3,852 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 15 |
ソースコード
#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 t;cin>>t;
while(t--){
}*/
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++;
}
double y = s/c;
int ans=0;
for(int i=0;i<n;i++){
if(a[i]>y)ans++;
}
cout<<ans;
return 0;
}