結果
問題 |
No.1586 Equal Array
|
ユーザー |
![]() |
提出日時 | 2021-07-09 09:03:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 1,737 ms |
コンパイル使用メモリ | 193,396 KB |
最終ジャッジ日時 | 2025-01-22 20:00:49 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pint = pair<int, int>; using pll = pair<ll, ll>; int main(){ ll N; cin >> N; ll tot = 0; for(int i = 0; i < N; i++){ ll a; cin >> a; tot += a; } cout << (tot % N ? "No": "Yes") << endl; }