結果

問題 No.2451 Redistribute Integers
ユーザー 憩いの場
提出日時 2023-09-01 21:46:49
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 66,048 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 11:02:07
合計ジャッジ時間 3,433 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>

using namespace std;

int main( void )
{
    long long N;
    cin >> N;
    long long A;
    long long sum = 0;
    for( int i = 0; i < N; i++ )
    {
        cin >> A;
        sum += A;
    }
    if( sum % N == 0 )
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }

    return 0;
}
0