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