結果

問題 No.476 正しくない平均
ユーザー akichiakichi
提出日時 2017-08-26 11:22:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 718 ms
コンパイル使用メモリ 113,208 KB
実行使用メモリ 27,412 KB
最終ジャッジ日時 2024-04-23 17:06:40
合計ジャッジ時間 2,221 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
27,148 KB
testcase_01 AC 25 ms
27,412 KB
testcase_02 AC 25 ms
22,968 KB
testcase_03 AC 25 ms
25,120 KB
testcase_04 AC 26 ms
24,736 KB
testcase_05 AC 25 ms
25,092 KB
testcase_06 AC 26 ms
27,028 KB
testcase_07 AC 24 ms
24,992 KB
testcase_08 AC 25 ms
25,252 KB
testcase_09 AC 25 ms
24,856 KB
testcase_10 AC 25 ms
25,124 KB
testcase_11 AC 26 ms
26,888 KB
testcase_12 AC 25 ms
24,884 KB
testcase_13 AC 23 ms
24,864 KB
testcase_14 AC 24 ms
24,732 KB
testcase_15 AC 24 ms
24,984 KB
testcase_16 AC 24 ms
24,860 KB
testcase_17 AC 24 ms
24,604 KB
testcase_18 AC 24 ms
24,884 KB
testcase_19 AC 24 ms
22,576 KB
testcase_20 AC 24 ms
26,868 KB
testcase_21 AC 24 ms
27,160 KB
testcase_22 AC 25 ms
26,888 KB
testcase_23 AC 24 ms
24,708 KB
testcase_24 AC 25 ms
24,884 KB
testcase_25 AC 25 ms
27,148 KB
testcase_26 AC 24 ms
24,740 KB
testcase_27 AC 25 ms
24,740 KB
testcase_28 AC 25 ms
24,848 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