結果

問題 No.1586 Equal Array
ユーザー shotoyooshotoyoo
提出日時 2021-07-08 22:22:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 334 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 91,104 KB
最終ジャッジ日時 2023-09-14 05:00:17
合計ジャッジ時間 3,285 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,156 KB
testcase_01 AC 68 ms
71,536 KB
testcase_02 AC 69 ms
71,356 KB
testcase_03 AC 72 ms
71,544 KB
testcase_04 AC 88 ms
88,636 KB
testcase_05 AC 86 ms
88,744 KB
testcase_06 AC 91 ms
90,808 KB
testcase_07 AC 90 ms
90,852 KB
testcase_08 AC 90 ms
90,844 KB
testcase_09 AC 93 ms
90,792 KB
testcase_10 AC 91 ms
90,792 KB
testcase_11 AC 69 ms
71,460 KB
testcase_12 AC 68 ms
71,644 KB
testcase_13 AC 93 ms
90,984 KB
testcase_14 AC 95 ms
90,728 KB
testcase_15 AC 92 ms
90,764 KB
testcase_16 AC 95 ms
90,808 KB
testcase_17 AC 69 ms
71,404 KB
testcase_18 AC 92 ms
91,104 KB
testcase_19 AC 93 ms
90,976 KB
testcase_20 AC 70 ms
71,332 KB
testcase_21 AC 68 ms
71,320 KB
testcase_22 AC 71 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()

sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")
debug = lambda x: sys.stderr.write(x+"\n")
writef = lambda x: print("{:.12f}".format(x))


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