結果
問題 |
No.476 正しくない平均
|
ユーザー |
|
提出日時 | 2017-02-24 22:25:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 621 ms |
コンパイル使用メモリ | 60,204 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 22:42:21 |
合計ジャッジ時間 | 1,521 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
#include <iostream> int main() { int n; size_t a, input; std::cin >> n >> a; size_t sum = n * a; for (int i = 0; i < n; i++) { std::cin >> input; sum -= input; } if (!sum) { std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } }