結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-05 14:36:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 274 ms / 2,000 ms |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 506 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 71,124 KB |
| 最終ジャッジ日時 | 2026-04-03 20:04:49 |
| 合計ジャッジ時間 | 6,067 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
n = int(input())
A = list(map(int, input().split()))
flag = False
for i in range(n-1):
if (A[i] - A[i+1]) % n != 0:
print("No")
break
else:
print("Yes")