結果

問題 No.2451 Redistribute Integers
ユーザー shobonvipshobonvip
提出日時 2023-09-01 21:40:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 296 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 173,956 KB
最終ジャッジ日時 2023-09-01 21:40:49
合計ジャッジ時間 5,362 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,336 KB
testcase_01 AC 72 ms
71,136 KB
testcase_02 AC 71 ms
71,092 KB
testcase_03 AC 74 ms
71,092 KB
testcase_04 AC 220 ms
155,308 KB
testcase_05 AC 72 ms
71,148 KB
testcase_06 AC 70 ms
71,040 KB
testcase_07 AC 71 ms
71,368 KB
testcase_08 AC 171 ms
149,600 KB
testcase_09 AC 80 ms
71,364 KB
testcase_10 AC 72 ms
71,120 KB
testcase_11 AC 72 ms
71,120 KB
testcase_12 AC 142 ms
101,764 KB
testcase_13 AC 259 ms
173,956 KB
testcase_14 AC 296 ms
157,932 KB
testcase_15 AC 172 ms
112,884 KB
testcase_16 AC 172 ms
107,232 KB
testcase_17 AC 229 ms
133,348 KB
testcase_18 AC 234 ms
145,960 KB
testcase_19 AC 87 ms
80,552 KB
testcase_20 AC 236 ms
141,236 KB
testcase_21 AC 271 ms
163,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
a.sort()
mode = 1
for i in range(n-1):
	if (a[i+1] - a[i]) % n != 0:
		mode = 0
if mode:
	print("Yes")
else:
	print("No")
0