結果
| 問題 | No.1586 Equal Array |
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2021-07-09 20:16:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 1,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 1,490 ms |
| コンパイル使用メモリ | 165,768 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 14:06:39 |
| 合計ジャッジ時間 | 2,927 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
/**
* @FileName a.cpp
* @Author kanpurin
* @Created 2021.07.09 20:16:24
**/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
int n;cin >> n;
ll total = 0;
for (int i = 0; i < n; i++) {
int a;cin >> a;
total += a;
}
if (total % n == 0) {
puts("Yes");
}
else {
puts("No");
}
return 0;
}
🍮かんプリン