結果
| 問題 | 
                            No.476 正しくない平均
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Naoki00712
                         | 
                    
| 提出日時 | 2023-06-02 09:22:40 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 287 bytes | 
| コンパイル時間 | 809 ms | 
| コンパイル使用メモリ | 28,416 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-28 15:29:59 | 
| 合計ジャッジ時間 | 1,438 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 7 | 
ソースコード
#include <stdio.h>
int main()
{
	long long n, a = 0;
	scanf("%lld%lld", &n, &a);
	int sum = 0;
	for (int i = 0; i < n; i++)
	{
		int x;
		scanf("%d", &x);
		sum += x;
	}
	long long f = n * a;
	if (f == (long long)sum)
	{
		printf("YES");
	}
	else
	{
		printf("NO");
	}
	return 0;
}
            
            
            
        
            
Naoki00712