結果

問題 No.2451 Redistribute Integers
ユーザー ゼットゼット
提出日時 2023-09-01 21:24:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 285 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 86,724 KB
実行使用メモリ 174,056 KB
最終ジャッジ日時 2023-09-01 21:24:52
合計ジャッジ時間 4,995 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,100 KB
testcase_01 AC 72 ms
71,200 KB
testcase_02 AC 71 ms
71,296 KB
testcase_03 AC 74 ms
71,296 KB
testcase_04 AC 218 ms
155,684 KB
testcase_05 AC 71 ms
71,304 KB
testcase_06 AC 72 ms
71,296 KB
testcase_07 AC 72 ms
71,300 KB
testcase_08 AC 163 ms
148,964 KB
testcase_09 AC 72 ms
71,292 KB
testcase_10 AC 71 ms
71,224 KB
testcase_11 AC 72 ms
71,076 KB
testcase_12 AC 142 ms
101,544 KB
testcase_13 AC 267 ms
174,056 KB
testcase_14 AC 262 ms
159,148 KB
testcase_15 AC 171 ms
112,824 KB
testcase_16 AC 168 ms
106,868 KB
testcase_17 AC 219 ms
132,696 KB
testcase_18 AC 234 ms
145,992 KB
testcase_19 AC 85 ms
80,172 KB
testcase_20 AC 229 ms
140,408 KB
testcase_21 AC 285 ms
173,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
A.sort()
for i in range(N):
  if (A[i]-A[0])%N!=0:
    print('No')
    exit()
print('Yes')
0