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