結果

問題 No.476 正しくない平均
ユーザー th90tk297
提出日時 2017-10-24 22:59:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 65,828 KB
最終ジャッジ日時 2025-01-05 03:27:06
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int n,a;cin>>n>>a;a*=n;
	int cnt=0,k;
	for(int i=0;i<n;i++){cin>>k;cnt+=k;}
	if(cnt==a)cout<<"YES\n";else cout<<"NO\n";
	return 0;
}
0