結果

問題 No.2451 Redistribute Integers
ユーザー 👑 rin204rin204
提出日時 2023-09-01 21:22:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 236 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 226,964 KB
最終ジャッジ日時 2023-09-01 21:22:49
合計ジャッジ時間 4,779 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,576 KB
testcase_01 AC 69 ms
71,412 KB
testcase_02 AC 67 ms
71,460 KB
testcase_03 AC 69 ms
71,192 KB
testcase_04 AC 207 ms
154,740 KB
testcase_05 AC 67 ms
71,444 KB
testcase_06 AC 67 ms
71,388 KB
testcase_07 AC 75 ms
71,560 KB
testcase_08 AC 236 ms
226,964 KB
testcase_09 AC 68 ms
71,528 KB
testcase_10 AC 69 ms
71,344 KB
testcase_11 AC 69 ms
71,584 KB
testcase_12 AC 127 ms
101,916 KB
testcase_13 AC 195 ms
174,480 KB
testcase_14 AC 192 ms
155,100 KB
testcase_15 AC 134 ms
111,292 KB
testcase_16 AC 156 ms
126,192 KB
testcase_17 AC 207 ms
165,264 KB
testcase_18 AC 178 ms
141,992 KB
testcase_19 AC 82 ms
83,080 KB
testcase_20 AC 220 ms
185,584 KB
testcase_21 AC 234 ms
173,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
if len(set(a % n for a in A)) == 1:
    print("Yes")
else:
    print("No")
0