結果
| 問題 | No.476 正しくない平均 |
| コンテスト | |
| ユーザー |
Naoki00712
|
| 提出日時 | 2023-06-02 09:25:22 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 803µs | |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 51 ms |
| コンパイル使用メモリ | 36,224 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-23 08:20:54 |
| 合計ジャッジ時間 | 1,492 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <stdio.h>
int main()
{
long long n, a = 0;
scanf("%lld%lld", &n, &a);
long long sum = 0;
for (int i = 0; i < n; i++)
{
int x;
scanf("%d", &x);
sum += (long long)x;
}
long long f = n * a;
if (f == sum)
{
printf("YES");
}
else
{
printf("NO");
}
return 0;
}
Naoki00712