結果

問題 No.2451 Redistribute Integers
ユーザー sotanishysotanishy
提出日時 2023-09-01 21:22:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 234 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 174,388 KB
最終ジャッジ日時 2023-09-01 21:22:48
合計ジャッジ時間 4,723 ms
ジャッジサーバーID
(参考情報)
judge11 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,476 KB
testcase_01 AC 74 ms
71,480 KB
testcase_02 AC 74 ms
71,320 KB
testcase_03 AC 75 ms
71,036 KB
testcase_04 AC 234 ms
148,316 KB
testcase_05 AC 73 ms
71,240 KB
testcase_06 AC 73 ms
71,340 KB
testcase_07 AC 72 ms
71,188 KB
testcase_08 AC 167 ms
149,248 KB
testcase_09 AC 74 ms
71,272 KB
testcase_10 AC 73 ms
71,168 KB
testcase_11 AC 73 ms
71,300 KB
testcase_12 AC 129 ms
100,260 KB
testcase_13 AC 201 ms
174,388 KB
testcase_14 AC 199 ms
148,304 KB
testcase_15 AC 136 ms
111,252 KB
testcase_16 AC 132 ms
104,972 KB
testcase_17 AC 196 ms
164,964 KB
testcase_18 AC 183 ms
141,720 KB
testcase_19 AC 86 ms
82,908 KB
testcase_20 AC 163 ms
136,900 KB
testcase_21 AC 233 ms
160,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
A = list(map(int, input().split()))
s = sum(A)
print("Yes" if s % N == 0 and len(set(map(lambda x: x % N, A))) == 1 else "No")
0