結果
| 問題 |
No.476 正しくない平均
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-12 23:38:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 292 bytes |
| コンパイル時間 | 691 ms |
| コンパイル使用メモリ | 66,612 KB |
| 最終ジャッジ日時 | 2025-02-14 02:10:39 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 26 |
ソースコード
#include <iostream>
using namespace std;
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
int main(void){
int n, a, x;
cin >> n >> a;
long long sum = 0;
for (int i = 0; i < n; i++) {
cin >> x;
sum += x;
}
(sum == n * a) ? YES : NO;
}