結果
問題 |
No.476 正しくない平均
|
ユーザー |
|
提出日時 | 2018-03-16 00:57:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 699 ms |
コンパイル使用メモリ | 53,752 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 14:04:28 |
合計ジャッジ時間 | 1,517 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 17 WA * 9 |
ソースコード
#include <iostream> using namespace std; int main() { int n,a; int b=0; int x; cin>>n>>a; for(int i=0;i<n;i++){ cin>>x; b+=x; } if((a==b/n)) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }