結果

問題 No.476 正しくない平均
ユーザー bluemeganebluemegane
提出日時 2018-09-14 20:56:09
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 398 bytes
コンパイル時間 2,469 ms
コンパイル使用メモリ 100,112 KB
実行使用メモリ 23,584 KB
最終ジャッジ日時 2023-09-20 10:17:34
合計ジャッジ時間 5,439 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,612 KB
testcase_01 AC 58 ms
19,732 KB
testcase_02 RE -
testcase_03 AC 58 ms
21,632 KB
testcase_04 AC 59 ms
19,588 KB
testcase_05 AC 59 ms
21,796 KB
testcase_06 AC 59 ms
21,636 KB
testcase_07 AC 59 ms
21,640 KB
testcase_08 AC 59 ms
21,540 KB
testcase_09 AC 60 ms
23,584 KB
testcase_10 AC 60 ms
21,712 KB
testcase_11 AC 59 ms
21,672 KB
testcase_12 AC 59 ms
21,708 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 59 ms
23,576 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 60 ms
21,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Linq;
using System;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var n = int.Parse(line[0]);
        var k = long.Parse(line[1]);
        line = Console.ReadLine().Trim().Split(' ');
        var a = Array.ConvertAll(line, int.Parse);
        Console.WriteLine(n * k == a.Sum() ? "YES" : "NO");
    }
}
0