結果
問題 | No.1586 Equal Array |
ユーザー |
|
提出日時 | 2021-07-09 13:57:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 1,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 1,903 ms |
コンパイル使用メモリ | 177,448 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 13:59:16 |
合計ジャッジ時間 | 3,354 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#pragma GCC optimize("Ofast", "unroll-loops") #include <bits/stdc++.h> using namespace std; int main(void){ int N; cin >> N; long long sum = 0; for (int _ = 0; _ < N; ++_){ int ai; cin >> ai; sum += ai; } if (sum % N == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }