結果

問題 No.2451 Redistribute Integers
ユーザー KudeKude
提出日時 2023-09-01 21:24:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 145,792 KB
最終ジャッジ日時 2023-09-01 21:24:26
合計ジャッジ時間 4,040 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,192 KB
testcase_01 AC 73 ms
70,768 KB
testcase_02 AC 71 ms
71,124 KB
testcase_03 AC 70 ms
71,128 KB
testcase_04 AC 173 ms
144,360 KB
testcase_05 AC 70 ms
71,256 KB
testcase_06 AC 72 ms
71,256 KB
testcase_07 AC 70 ms
71,200 KB
testcase_08 AC 129 ms
108,496 KB
testcase_09 AC 72 ms
71,200 KB
testcase_10 AC 71 ms
71,280 KB
testcase_11 AC 72 ms
70,992 KB
testcase_12 AC 93 ms
86,240 KB
testcase_13 AC 148 ms
117,972 KB
testcase_14 AC 170 ms
145,792 KB
testcase_15 AC 120 ms
95,532 KB
testcase_16 AC 114 ms
98,876 KB
testcase_17 AC 125 ms
99,824 KB
testcase_18 AC 146 ms
117,968 KB
testcase_19 AC 77 ms
73,840 KB
testcase_20 AC 123 ms
104,036 KB
testcase_21 AC 136 ms
113,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
r = -1
for x in map(int, input().split()):
    if r == -1:
        r = x % n
    elif x % n != r:
        print('No')
        break
else:
    print('Yes')
0