結果

問題 No.2451 Redistribute Integers
ユーザー KoiKoi
提出日時 2023-09-01 21:27:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 283 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 174,460 KB
最終ジャッジ日時 2023-09-01 21:27:23
合計ジャッジ時間 5,022 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,260 KB
testcase_01 AC 69 ms
71,216 KB
testcase_02 AC 74 ms
71,472 KB
testcase_03 AC 69 ms
71,480 KB
testcase_04 AC 209 ms
156,584 KB
testcase_05 AC 70 ms
71,412 KB
testcase_06 AC 69 ms
71,352 KB
testcase_07 AC 68 ms
71,480 KB
testcase_08 AC 157 ms
149,352 KB
testcase_09 AC 69 ms
71,424 KB
testcase_10 AC 69 ms
71,360 KB
testcase_11 AC 69 ms
71,380 KB
testcase_12 AC 141 ms
101,948 KB
testcase_13 AC 251 ms
174,460 KB
testcase_14 AC 283 ms
158,188 KB
testcase_15 AC 164 ms
113,088 KB
testcase_16 AC 164 ms
107,004 KB
testcase_17 AC 222 ms
132,816 KB
testcase_18 AC 226 ms
146,200 KB
testcase_19 AC 82 ms
80,504 KB
testcase_20 AC 223 ms
140,688 KB
testcase_21 AC 258 ms
163,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
A.sort()
s=A[0]
is_ok=True
for i in range(N):
    if((A[i]-A[0])%N!=0):
        is_ok=False
        break
if(is_ok):
    print("Yes")
else:
    print("No")
0