結果

問題 No.1586 Equal Array
ユーザー chineristACchineristAC
提出日時 2021-07-08 22:22:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 1,000 ms
コード長 350 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 94,308 KB
最終ジャッジ日時 2023-09-14 05:00:23
合計ジャッジ時間 4,207 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
74,860 KB
testcase_01 AC 110 ms
74,848 KB
testcase_02 AC 109 ms
74,356 KB
testcase_03 AC 109 ms
74,868 KB
testcase_04 AC 129 ms
92,248 KB
testcase_05 AC 128 ms
91,668 KB
testcase_06 AC 133 ms
93,864 KB
testcase_07 AC 132 ms
94,080 KB
testcase_08 AC 131 ms
94,232 KB
testcase_09 AC 135 ms
93,840 KB
testcase_10 AC 130 ms
93,856 KB
testcase_11 AC 109 ms
74,648 KB
testcase_12 AC 108 ms
74,572 KB
testcase_13 AC 133 ms
94,056 KB
testcase_14 AC 132 ms
94,176 KB
testcase_15 AC 133 ms
94,308 KB
testcase_16 AC 130 ms
94,212 KB
testcase_17 AC 110 ms
74,856 KB
testcase_18 AC 133 ms
94,220 KB
testcase_19 AC 131 ms
94,176 KB
testcase_20 AC 109 ms
74,364 KB
testcase_21 AC 107 ms
74,536 KB
testcase_22 AC 108 ms
74,400 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