結果
問題 |
No.2451 Redistribute Integers
|
ユーザー |
![]() |
提出日時 | 2023-06-20 23:38:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 2,038 ms |
コンパイル使用メモリ | 194,652 KB |
最終ジャッジ日時 | 2025-02-14 23:43:18 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ll N, S=0; cin >> N; assert(2 <= N && N <= 5e5); vector<ll> A(N), B(N); for (int i=0; i<N; i++){ cin >> A[i]; assert(abs(A[i]) <= 1e9); S += A[i]; } cout << (S % N == 0 ? "Yes" : "No") << endl; return 0; }