結果

問題 No.476 正しくない平均
ユーザー CroweaCrowea
提出日時 2019-01-24 13:09:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 784 ms
コンパイル使用メモリ 69,840 KB
実行使用メモリ 23,828 KB
最終ジャッジ日時 2023-10-14 09:37:58
合計ジャッジ時間 3,760 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,884 KB
testcase_01 AC 64 ms
21,768 KB
testcase_02 AC 63 ms
21,740 KB
testcase_03 AC 63 ms
21,984 KB
testcase_04 AC 63 ms
21,808 KB
testcase_05 AC 64 ms
21,904 KB
testcase_06 AC 62 ms
21,904 KB
testcase_07 AC 62 ms
21,920 KB
testcase_08 AC 62 ms
21,800 KB
testcase_09 AC 64 ms
21,904 KB
testcase_10 AC 63 ms
21,724 KB
testcase_11 AC 63 ms
21,884 KB
testcase_12 AC 63 ms
21,956 KB
testcase_13 AC 63 ms
21,952 KB
testcase_14 AC 64 ms
21,884 KB
testcase_15 AC 62 ms
21,876 KB
testcase_16 AC 62 ms
21,800 KB
testcase_17 AC 63 ms
23,828 KB
testcase_18 AC 64 ms
21,856 KB
testcase_19 AC 64 ms
21,860 KB
testcase_20 AC 65 ms
21,836 KB
testcase_21 AC 64 ms
21,888 KB
testcase_22 AC 64 ms
21,880 KB
testcase_23 AC 63 ms
21,864 KB
testcase_24 AC 65 ms
21,796 KB
testcase_25 AC 62 ms
21,800 KB
testcase_26 AC 63 ms
21,844 KB
testcase_27 AC 63 ms
23,760 KB
testcase_28 AC 63 ms
21,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var ans = Console.ReadLine().Split(' ').ElementAt(1).ToString();
        var avg = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList().Average();
        Console.WriteLine((avg == double.Parse(ans)) ? "YES" : "NO");
    }
}
0