結果

問題 No.2451 Redistribute Integers
ユーザー 憩いの場憩いの場
提出日時 2023-09-01 21:46:49
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 566 ms
コンパイル使用メモリ 66,196 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-01 21:46:55
合計ジャッジ時間 3,649 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 211 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 144 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 WA -
testcase_13 AC 183 ms
4,376 KB
testcase_14 AC 201 ms
4,380 KB
testcase_15 AC 102 ms
4,376 KB
testcase_16 AC 88 ms
4,380 KB
testcase_17 WA -
testcase_18 AC 186 ms
4,376 KB
testcase_19 WA -
testcase_20 AC 150 ms
4,380 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

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