結果

問題 No.1586 Equal Array
ユーザー shotoyooshotoyoo
提出日時 2021-07-08 22:22:52
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 109 ms / 1,000 ms
コード長 334 bytes
コンパイル時間 272 ms
使用メモリ 95,672 KB
最終ジャッジ日時 2023-02-01 18:28:48
合計ジャッジ時間 3,954 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 78 ms
75,464 KB
testcase_01 AC 78 ms
75,472 KB
testcase_02 AC 80 ms
75,548 KB
testcase_03 AC 79 ms
75,548 KB
testcase_04 AC 97 ms
93,008 KB
testcase_05 AC 97 ms
93,320 KB
testcase_06 AC 106 ms
95,432 KB
testcase_07 AC 108 ms
95,040 KB
testcase_08 AC 106 ms
95,276 KB
testcase_09 AC 106 ms
95,392 KB
testcase_10 AC 106 ms
95,380 KB
testcase_11 AC 79 ms
75,540 KB
testcase_12 AC 81 ms
75,548 KB
testcase_13 AC 108 ms
95,344 KB
testcase_14 AC 109 ms
95,456 KB
testcase_15 AC 106 ms
95,404 KB
testcase_16 AC 101 ms
95,360 KB
testcase_17 AC 77 ms
75,632 KB
testcase_18 AC 104 ms
95,248 KB
testcase_19 AC 108 ms
95,672 KB
testcase_20 AC 80 ms
75,392 KB
testcase_21 AC 78 ms
75,580 KB
testcase_22 AC 79 ms
75,480 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