結果

問題 No.406 鴨等間隔の法則
コンテスト
ユーザー r_yo6021
提出日時 2016-09-05 23:21:04
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 243 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 55 ms
コンパイル使用メモリ 15,232 KB
実行使用メモリ 21,928 KB
最終ジャッジ日時 2026-09-20 02:50:47
合計ジャッジ時間 3,551 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
L = sorted(list(map(int, input().split())))

d = L[1] - L[0]
if d == 0:
    print("NO")
    exit()

for i in range(2, N):
    print(L[i] - L[i - 1])
    if L[i] - L[i - 1] == d:
        print("NO")
        exit()

print("YES")
0