結果
| 問題 |
No.476 正しくない平均
|
| コンテスト | |
| ユーザー |
Naoki00712
|
| 提出日時 | 2023-06-02 09:25:22 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 394 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 15:30:08 |
| 合計ジャッジ時間 | 1,195 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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