結果
問題 | No.476 正しくない平均 |
ユーザー | r2en_ |
提出日時 | 2017-02-27 17:38:20 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 59,212 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 19:40:34 |
合計ジャッジ時間 | 1,239 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
#include <iostream> #include <math.h> using namespace std; #define Rop(i,N) for(int i=0;i<N;i++) int main(void){ long long N,A; long long x,sum = 0; cin >> N >> A; Rop(i,N){cin >> x; sum += x;} if(A * N == sum)cout << "YES" << endl; else cout << "NO" << endl; return (0); }