結果

問題 No.2451 Redistribute Integers
ユーザー 遭難者遭難者
提出日時 2023-09-02 01:43:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 174,628 KB
最終ジャッジ日時 2023-09-02 01:43:25
合計ジャッジ時間 4,515 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,260 KB
testcase_01 AC 66 ms
71,272 KB
testcase_02 AC 64 ms
71,424 KB
testcase_03 AC 65 ms
71,336 KB
testcase_04 AC 180 ms
150,472 KB
testcase_05 AC 64 ms
71,316 KB
testcase_06 AC 65 ms
71,500 KB
testcase_07 AC 65 ms
71,384 KB
testcase_08 AC 155 ms
150,212 KB
testcase_09 AC 65 ms
71,276 KB
testcase_10 AC 64 ms
71,180 KB
testcase_11 AC 65 ms
71,304 KB
testcase_12 AC 114 ms
100,372 KB
testcase_13 AC 179 ms
174,628 KB
testcase_14 AC 180 ms
148,304 KB
testcase_15 AC 122 ms
111,420 KB
testcase_16 AC 120 ms
105,708 KB
testcase_17 AC 146 ms
130,316 KB
testcase_18 AC 163 ms
142,132 KB
testcase_19 AC 76 ms
80,460 KB
testcase_20 AC 158 ms
137,628 KB
testcase_21 AC 185 ms
174,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
input = stdin.readline
n = int(input())
a = list(map(int, input().split()))
ans = sum(a) % n == 0
for i in a:
    ans &= (i - a[0]) % n == 0
print("Yes" if ans else "No")
0