結果
| 問題 | No.2451 Redistribute Integers |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-12-22 06:36:46 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 195 ms / 2,000 ms |
| + 496µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 64,660 KB |
| 実行使用メモリ | 119,128 KB |
| 最終ジャッジ日時 | 2026-10-16 02:32:32 |
| 合計ジャッジ時間 | 5,150 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
N = int(input())
A = sorted(list(map(int, input().split())))
sumA = sum(A)
if sumA%N != 0:
exit(print("No"))
for i in range(N-1):
if (A[i+1]-A[i])%N != 0:
print("No")
break
else:
print("Yes")
detteiuu