結果

問題 No.476 正しくない平均
ユーザー akichiakichi
提出日時 2017-08-26 11:22:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 1,986 ms
コンパイル使用メモリ 105,488 KB
実行使用メモリ 23,976 KB
最終ジャッジ日時 2023-08-05 20:35:44
合計ジャッジ時間 5,578 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
19,884 KB
testcase_01 AC 60 ms
21,808 KB
testcase_02 AC 61 ms
22,020 KB
testcase_03 AC 60 ms
19,888 KB
testcase_04 AC 61 ms
21,828 KB
testcase_05 AC 62 ms
23,856 KB
testcase_06 AC 61 ms
21,844 KB
testcase_07 AC 61 ms
21,880 KB
testcase_08 AC 60 ms
21,756 KB
testcase_09 AC 61 ms
22,000 KB
testcase_10 AC 60 ms
23,876 KB
testcase_11 AC 59 ms
21,888 KB
testcase_12 AC 61 ms
23,912 KB
testcase_13 AC 59 ms
21,872 KB
testcase_14 AC 58 ms
21,892 KB
testcase_15 AC 60 ms
23,864 KB
testcase_16 AC 60 ms
21,908 KB
testcase_17 AC 60 ms
21,936 KB
testcase_18 AC 61 ms
21,840 KB
testcase_19 AC 61 ms
23,932 KB
testcase_20 AC 61 ms
23,808 KB
testcase_21 AC 60 ms
21,804 KB
testcase_22 AC 61 ms
21,932 KB
testcase_23 AC 61 ms
21,900 KB
testcase_24 AC 62 ms
23,872 KB
testcase_25 AC 62 ms
23,976 KB
testcase_26 AC 61 ms
21,896 KB
testcase_27 AC 61 ms
23,904 KB
testcase_28 AC 63 ms
21,928 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
class Program {
    static void Main() {
        long[] na = Console.ReadLine().Split().Select(long.Parse).ToArray();
        long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
        Console.WriteLine(na[0] * na[1] == x.Sum() ? "YES" : "NO");
    }

}
0