結果

問題 No.2451 Redistribute Integers
ユーザー bluemeganebluemegane
提出日時 2023-09-01 22:42:47
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 1,115 ms
コンパイル使用メモリ 67,552 KB
実行使用メモリ 68,708 KB
最終ジャッジ日時 2023-09-01 22:42:54
合計ジャッジ時間 5,933 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,532 KB
testcase_01 AC 60 ms
23,568 KB
testcase_02 AC 59 ms
21,432 KB
testcase_03 AC 59 ms
21,360 KB
testcase_04 AC 280 ms
65,016 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 60 ms
21,580 KB
testcase_08 AC 249 ms
67,152 KB
testcase_09 AC 60 ms
23,568 KB
testcase_10 AC 68 ms
23,784 KB
testcase_11 AC 69 ms
21,692 KB
testcase_12 WA -
testcase_13 AC 273 ms
66,692 KB
testcase_14 AC 272 ms
68,708 KB
testcase_15 AC 174 ms
50,184 KB
testcase_16 AC 164 ms
49,792 KB
testcase_17 WA -
testcase_18 AC 266 ms
64,788 KB
testcase_19 WA -
testcase_20 AC 234 ms
61,680 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System.Linq;
using System;

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