結果
問題 |
No.476 正しくない平均
|
ユーザー |
![]() |
提出日時 | 2018-01-22 20:54:48 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 01:24:46 |
合計ジャッジ時間 | 1,001 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 20 WA * 6 |
ソースコード
#include <stdio.h> int main(void){ int n,a,i,x; long long sum=0; scanf("%d%d",&n,&a); for (i=0;i<n;i++){ scanf("%d",&x); sum+=x; } if (sum/n==a){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }