結果

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

ソースコード

diff #

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, v;
    cin >> n;
    ll s = 0;
    for(int i = 0; i < n; i++){
        cin >> v;
        s += v;
    }
    cout << (s % n == 0 ? "Yes" : "No") << '\n';
}
0