結果

問題 No.406 鴨等間隔の法則
ユーザー r_yo6021
提出日時 2016-09-05 23:21:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 21,732 KB
最終ジャッジ日時 2024-11-07 05:42:18
合計ジャッジ時間 3,396 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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