結果

問題 No.1586 Equal Array
ユーザー chineristACchineristAC
提出日時 2021-07-08 22:22:56
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 156 ms / 1,000 ms
コード長 350 bytes
コンパイル時間 270 ms
使用メモリ 97,512 KB
最終ジャッジ日時 2023-02-01 18:28:56
合計ジャッジ時間 5,054 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 122 ms
78,392 KB
testcase_01 AC 122 ms
78,604 KB
testcase_02 AC 121 ms
78,480 KB
testcase_03 AC 120 ms
78,624 KB
testcase_04 AC 138 ms
96,168 KB
testcase_05 AC 136 ms
96,036 KB
testcase_06 AC 150 ms
97,212 KB
testcase_07 AC 155 ms
96,936 KB
testcase_08 AC 156 ms
97,056 KB
testcase_09 AC 154 ms
97,244 KB
testcase_10 AC 155 ms
97,152 KB
testcase_11 AC 122 ms
78,556 KB
testcase_12 AC 123 ms
78,328 KB
testcase_13 AC 154 ms
96,976 KB
testcase_14 AC 154 ms
96,936 KB
testcase_15 AC 153 ms
97,108 KB
testcase_16 AC 151 ms
97,380 KB
testcase_17 AC 116 ms
78,460 KB
testcase_18 AC 151 ms
97,404 KB
testcase_19 AC 154 ms
97,512 KB
testcase_20 AC 123 ms
78,328 KB
testcase_21 AC 119 ms
78,756 KB
testcase_22 AC 118 ms
78,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import gcd,log

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()
S = sum(A)
print("Yes" if S%N==0 else "No")
0