結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2020-07-31 11:16:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 163 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,860 KB |
最終ジャッジ日時 | 2024-07-06 00:18:25 |
合計ジャッジ時間 | 3,224 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 29 |
ソースコード
n=int(input()) a=sorted(list(map(int,input().split()))) b=set([a[i+1]-a[i] for i in range(n-1)]) if len(s)!=1 or b.pop()==0: print('NO') else: print('YES')