結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2023-09-01 21:40:40 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 201 ms / 2,000 ms |
| + 359µs | |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 64,900 KB |
| 実行使用メモリ | 116,092 KB |
| 最終ジャッジ日時 | 2026-10-16 01:45:31 |
| 合計ジャッジ時間 | 5,462 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
a.sort()
mode = 1
for i in range(n-1):
if (a[i+1] - a[i]) % n != 0:
mode = 0
if mode:
print("Yes")
else:
print("No")
shobonvip