結果
| 問題 | No.476 正しくない平均 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-27 23:20:27 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 1,836 ms |
| コンパイル使用メモリ | 207,088 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-07 15:24:48 |
| 合計ジャッジ時間 | 3,496 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n, a;
cin >> n >> a;
int sum = 0;
int x;
for (int i = 0; i < n; i++) {
cin >> x;
sum += x - a;
}
if (sum == 0) puts("YES");
else puts("NO");
return 0;
}