結果
問題 |
No.3216 Slightly Strong Fairies
|
ユーザー |
![]() |
提出日時 | 2025-09-29 12:20:26 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 4,576 ms |
コンパイル使用メモリ | 278,452 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-29 12:20:41 |
合計ジャッジ時間 | 6,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #ifdef LOCAL #include <debug.hpp> #else #define debug(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20); int N; cin >> N; vector<int> A(N); for (int i = 0; i < N; i++) cin >> A[i]; int L = reduce(A.begin(), A.end()) / N, ans = 0; for (int i = 0; i < N; i++) { if (A[i] >= L + 100) ans++; } cout << ans << "\n"; }