結果
| 問題 |
No.1586 Equal Array
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-18 16:37:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 1,000 ms |
| コード長 | 455 bytes |
| コンパイル時間 | 890 ms |
| コンパイル使用メモリ | 91,728 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 14:05:37 |
| 合計ジャッジ時間 | 2,810 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<set>
#include<map>
#include<ios>
#include<iomanip>
#include<cmath>
#include<limits>
#include<algorithm>
using namespace std;
int main(){
int n;
cin >> n;
long long sum = 0;
for(int i=0; i<n; i++){
int tmp;
cin >> tmp;
sum+=tmp;
}
if(sum % n == 0){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
return 0;
}