結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-01 21:29:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 195 ms / 2,000 ms |
| コード長 | 157 bytes |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 154,052 KB |
| 最終ジャッジ日時 | 2024-06-11 10:59:30 |
| 合計ジャッジ時間 | 3,699 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
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")