結果

問題 No.2451 Redistribute Integers
ユーザー minimumminimum
提出日時 2023-09-01 21:31:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 234,224 KB
最終ジャッジ日時 2023-09-01 21:31:49
合計ジャッジ時間 4,693 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,540 KB
testcase_01 AC 69 ms
71,608 KB
testcase_02 AC 68 ms
71,476 KB
testcase_03 AC 69 ms
71,380 KB
testcase_04 AC 203 ms
157,668 KB
testcase_05 AC 70 ms
71,352 KB
testcase_06 AC 69 ms
71,268 KB
testcase_07 AC 70 ms
71,256 KB
testcase_08 AC 216 ms
234,224 KB
testcase_09 AC 70 ms
71,224 KB
testcase_10 AC 69 ms
71,052 KB
testcase_11 AC 70 ms
71,244 KB
testcase_12 AC 125 ms
102,288 KB
testcase_13 AC 196 ms
177,900 KB
testcase_14 AC 198 ms
157,108 KB
testcase_15 AC 134 ms
112,964 KB
testcase_16 AC 151 ms
127,356 KB
testcase_17 AC 188 ms
167,388 KB
testcase_18 AC 176 ms
145,940 KB
testcase_19 AC 83 ms
83,212 KB
testcase_20 AC 198 ms
179,116 KB
testcase_21 AC 226 ms
164,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = set([A[i] % N for i in range(N)])
if len(B) == 1:
    print("Yes")
else:
    print("No")
0