結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-01 21:22:37 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 1,196 ms |
| コンパイル使用メモリ | 210,384 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 08:13:58 |
| 合計ジャッジ時間 | 2,655 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0); cout.tie(0);
ios::sync_with_stdio(false);
int N;
cin >> N;
vector<int> A(N);
long long S = 0;
for(int i = 0; i < N; i++) {
cin >> A[i];
S += A[i];
}
cout << (S % N == 0 ? "Yes\n" : "No\n");
return 0;
}