結果
問題 | No.1586 Equal Array |
ユーザー | shiomusubi496 |
提出日時 | 2021-07-08 22:24:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 2,268 ms |
コンパイル使用メモリ | 193,820 KB |
最終ジャッジ日時 | 2025-01-22 18:29:45 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int N; cin>>N; vector<int> A(N); int sum=0; for(int i=0;i<N;i++){ cin>>A[i]; sum+=A[i]; } if(sum%N==0)puts("Yes"); else puts("No"); }