結果
問題 | No.476 正しくない平均 |
ユーザー |
|
提出日時 | 2023-06-12 23:39:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 487 ms |
コンパイル使用メモリ | 65,532 KB |
最終ジャッジ日時 | 2025-02-14 02:10:42 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 8 |
ソースコード
#include <iostream>using namespace std;#define YES cout << "YES" << endl#define NO cout << "NO" << endlint 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;}