結果
問題 | No.1586 Equal Array |
ユーザー |
![]() |
提出日時 | 2021-07-08 22:47:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 1,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 2,106 ms |
コンパイル使用メモリ | 192,788 KB |
最終ジャッジ日時 | 2025-01-22 18:56:07 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> int main() { using namespace std; cin.tie(nullptr)->sync_with_stdio(false); int n; cin >> n; int64_t sum = 0; for (int _ = n; _--;) { int a; cin >> a; sum += a; } cout << (sum % n ? "No\n" : "Yes\n"); }