結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-01 21:22:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 300 bytes |
| コンパイル時間 | 1,906 ms |
| コンパイル使用メモリ | 193,616 KB |
| 最終ジャッジ日時 | 2025-02-16 16:08:03 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}