結果
問題 | No.2451 Redistribute Integers |
ユーザー |
|
提出日時 | 2023-09-01 21:27:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 523 ms / 2,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 67,224 KB |
最終ジャッジ日時 | 2024-06-11 10:58:59 |
合計ジャッジ時間 | 5,275 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
n = int(input()) A = list(map(int, input().split())) A.sort() for i in range(n - 1): if (A[i + 1] - A[i]) % n != 0: print("No") exit() print("Yes")