結果

問題 No.1586 Equal Array
ユーザー bluemeganebluemegane
提出日時 2021-07-08 22:38:07
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 98 ms / 1,000 ms
コード長 334 bytes
コンパイル時間 1,679 ms
コンパイル使用メモリ 64,892 KB
実行使用メモリ 32,732 KB
最終ジャッジ日時 2023-09-14 05:13:08
合計ジャッジ時間 4,444 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
20,676 KB
testcase_01 AC 50 ms
20,652 KB
testcase_02 AC 50 ms
20,792 KB
testcase_03 AC 50 ms
20,744 KB
testcase_04 AC 78 ms
25,484 KB
testcase_05 AC 84 ms
25,320 KB
testcase_06 AC 85 ms
30,212 KB
testcase_07 AC 87 ms
30,172 KB
testcase_08 AC 90 ms
30,168 KB
testcase_09 AC 89 ms
30,072 KB
testcase_10 AC 85 ms
30,204 KB
testcase_11 AC 50 ms
22,776 KB
testcase_12 AC 49 ms
20,576 KB
testcase_13 AC 84 ms
28,304 KB
testcase_14 AC 87 ms
28,112 KB
testcase_15 AC 86 ms
30,136 KB
testcase_16 AC 85 ms
30,124 KB
testcase_17 AC 49 ms
20,600 KB
testcase_18 AC 89 ms
28,180 KB
testcase_19 AC 98 ms
32,732 KB
testcase_20 AC 54 ms
20,652 KB
testcase_21 AC 50 ms
20,596 KB
testcase_22 AC 50 ms
20,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        string[] line = Console.ReadLine().Trim().Split(' ');
        var asum = 0L;
        for (int i = 0; i < n; i++) asum += long.Parse(line[i]);
        Console.WriteLine(asum % n == 0 ? "Yes" : "No");
    }
}
0