結果

問題 No.2451 Redistribute Integers
ユーザー hiryuNhiryuN
提出日時 2023-09-01 21:29:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 174,340 KB
最終ジャッジ日時 2023-09-01 21:29:20
合計ジャッジ時間 4,383 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,252 KB
testcase_01 AC 67 ms
71,400 KB
testcase_02 AC 68 ms
71,456 KB
testcase_03 AC 68 ms
71,108 KB
testcase_04 AC 199 ms
154,596 KB
testcase_05 AC 68 ms
71,396 KB
testcase_06 AC 69 ms
71,104 KB
testcase_07 AC 68 ms
71,272 KB
testcase_08 AC 157 ms
149,172 KB
testcase_09 AC 69 ms
71,444 KB
testcase_10 AC 69 ms
71,276 KB
testcase_11 AC 70 ms
71,344 KB
testcase_12 AC 107 ms
101,580 KB
testcase_13 AC 197 ms
174,340 KB
testcase_14 AC 191 ms
153,928 KB
testcase_15 AC 135 ms
111,340 KB
testcase_16 AC 124 ms
105,052 KB
testcase_17 AC 147 ms
129,444 KB
testcase_18 AC 172 ms
142,360 KB
testcase_19 AC 79 ms
80,020 KB
testcase_20 AC 156 ms
136,836 KB
testcase_21 AC 174 ms
154,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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