結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
sepa38
|
| 提出日時 | 2023-09-01 21:41:54 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 125 ms / 2,000 ms |
| + 33µs | |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 65,044 KB |
| 実行使用メモリ | 112,776 KB |
| 最終ジャッジ日時 | 2026-10-16 01:46:00 |
| 合計ジャッジ時間 | 5,039 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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")
sepa38