結果
| 問題 | No.476 正しくない平均 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-19 18:20:26 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 303µs | |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 39,356 KB |
| 実行使用メモリ | 9,916 KB |
| 最終ジャッジ日時 | 2026-10-10 08:40:47 |
| 合計ジャッジ時間 | 1,529 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <stdio.h>
int main(){
//input
long n,a;
scanf("%ld %ld",&n,&a);
long total = 0;
for (int i = 0;i < n;i++){
long x;
scanf("%ld",&x);
total += x;
}
//output
if (total == a*n){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}