結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
hiro71687k
|
| 提出日時 | 2023-09-01 21:23:31 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 2,880 ms |
| コンパイル使用メモリ | 273,500 KB |
| 実行使用メモリ | 7,424 KB |
| 最終ジャッジ日時 | 2026-07-02 08:14:30 |
| 合計ジャッジ時間 | 5,303 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 6 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=long double;
ld pie=3.141592653589793;
ll mod=1000000007;
ll inf=1009999999999999990;
int main(){
ll n;
cin >> n;
vector<ll>a(n);
ll sum=0;
for (ll i = 0; i < n; i++)
{
cin >> a[i];
sum+=a[i];
}
if (sum%n==0)
{
cout << "Yes" << endl;
}else{
cout << "No" <<endl;
}
}
hiro71687k