結果

問題 No.1586 Equal Array
ユーザー 👑 tamatotamato
提出日時 2021-07-08 22:21:10
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 267 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 87,768 KB
実行使用メモリ 90,536 KB
最終ジャッジ日時 2023-09-14 04:57:51
合計ジャッジ時間 3,768 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,672 KB
testcase_01 AC 75 ms
71,552 KB
testcase_02 AC 74 ms
71,648 KB
testcase_03 AC 73 ms
71,808 KB
testcase_04 AC 90 ms
88,640 KB
testcase_05 AC 91 ms
88,660 KB
testcase_06 AC 96 ms
89,948 KB
testcase_07 AC 95 ms
89,932 KB
testcase_08 AC 95 ms
90,052 KB
testcase_09 AC 96 ms
89,856 KB
testcase_10 AC 97 ms
89,948 KB
testcase_11 AC 74 ms
71,796 KB
testcase_12 AC 74 ms
71,596 KB
testcase_13 AC 96 ms
89,852 KB
testcase_14 AC 98 ms
89,896 KB
testcase_15 AC 98 ms
90,072 KB
testcase_16 AC 98 ms
89,988 KB
testcase_17 AC 73 ms
71,512 KB
testcase_18 AC 98 ms
90,360 KB
testcase_19 AC 100 ms
90,536 KB
testcase_20 AC 75 ms
71,864 KB
testcase_21 AC 74 ms
71,648 KB
testcase_22 AC 75 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    A = list(map(int, input().split()))
    if sum(A) % N == 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
0