結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-01 21:29:11 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 123 ms / 2,000 ms |
| + 755µs | |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 65,008 KB |
| 実行使用メモリ | 113,112 KB |
| 最終ジャッジ日時 | 2026-10-16 01:42:13 |
| 合計ジャッジ時間 | 3,372 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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")