結果
| 問題 |
No.406 鴨等間隔の法則
|
| コンテスト | |
| ユーザー |
ieneko18
|
| 提出日時 | 2016-10-15 15:24:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 202 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,636 KB |
| 最終ジャッジ日時 | 2024-07-07 11:51:53 |
| 合計ジャッジ時間 | 2,754 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
n=int(input())
x=sorted(list(map(int,input().split())))
d=x[1]-x[0]
if d==0:
print("NO")
exit()
for i in range(1,len(x)-1):
if x[i+1]-x[i]!=d:
print("NO")
exit()
print("YES")
ieneko18