結果

問題 No.2451 Redistribute Integers
ユーザー sepa38sepa38
提出日時 2023-09-01 21:41:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 174,640 KB
最終ジャッジ日時 2023-09-01 21:41:59
合計ジャッジ時間 4,287 ms
ジャッジサーバーID
(参考情報)
judge16 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,348 KB
testcase_01 AC 71 ms
71,432 KB
testcase_02 AC 72 ms
71,144 KB
testcase_03 AC 71 ms
71,444 KB
testcase_04 AC 191 ms
154,736 KB
testcase_05 AC 71 ms
71,180 KB
testcase_06 AC 70 ms
71,600 KB
testcase_07 AC 72 ms
71,560 KB
testcase_08 AC 161 ms
149,344 KB
testcase_09 AC 71 ms
71,444 KB
testcase_10 AC 70 ms
71,308 KB
testcase_11 AC 72 ms
71,444 KB
testcase_12 AC 106 ms
101,608 KB
testcase_13 AC 191 ms
174,640 KB
testcase_14 AC 191 ms
153,620 KB
testcase_15 AC 135 ms
111,424 KB
testcase_16 AC 128 ms
104,996 KB
testcase_17 AC 151 ms
129,544 KB
testcase_18 AC 182 ms
141,980 KB
testcase_19 AC 80 ms
80,224 KB
testcase_20 AC 156 ms
137,272 KB
testcase_21 AC 180 ms
154,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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