結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2020-11-28 04:31:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 24,644 KB |
最終ジャッジ日時 | 2024-09-12 21:59:05 |
合計ジャッジ時間 | 5,431 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N = int(input()) l = sorted(list(map(int, input().split()))) d = [0]*(N-1) for i in range(N-1): d[i] = l[i+1]-l[i] print("YES" if len(set(l))!=1 and len(set(d))==1 else "NO")