結果
問題 | No.2451 Redistribute Integers |
ユーザー | shobonvip |
提出日時 | 2023-09-01 21:40:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 269 ms / 2,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 177,172 KB |
最終ジャッジ日時 | 2024-06-11 11:01:34 |
合計ジャッジ時間 | 4,107 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
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")