結果

問題 No.3220 Forest Creation
ユーザー Nauclhlt🪷
提出日時 2025-07-01 20:21:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 490 bytes
コンパイル時間 1,571 ms
コンパイル使用メモリ 195,896 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-07-04 20:48:21
合計ジャッジ時間 2,799 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 28 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = long long;

int main()
{
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int N;
    cin >> N;
    vector<ll> A(N + 1);
    for (int i = 0; i <= N; i++)
    {
        cin >> A[i];
    }

    double average = 0;
    for (int i = 0; i <= N; i++)
    {
        average += A[i];
    }
    average /= N;

    if (average <= 50000)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
}
0