結果

問題 No.476 正しくない平均
ユーザー Artemis2718
提出日時 2019-04-02 22:28:26
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 28,416 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 11:05:36
合計ジャッジ時間 1,419 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    int n,i,a,num,sum = 0;

    scanf("%d",&n);
    scanf("%d",&a);
    for(i = 0;i < n;i++){
        scanf("%d",&num);
        sum += num;
    }
    if (sum == n*a){
        printf("YES\n");
    } else {
        printf("NO\n");
    }
    return 0;
}
0