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