結果

問題 No.406 鴨等間隔の法則
ユーザー ああいいああいい
提出日時 2022-05-17 16:53:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 974 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 91,304 KB
最終ジャッジ日時 2023-10-13 14:53:10
合計ジャッジ時間 5,352 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
81,184 KB
testcase_01 AC 61 ms
71,228 KB
testcase_02 AC 62 ms
71,324 KB
testcase_03 AC 62 ms
70,972 KB
testcase_04 AC 100 ms
89,172 KB
testcase_05 AC 75 ms
79,728 KB
testcase_06 AC 76 ms
79,796 KB
testcase_07 AC 79 ms
80,364 KB
testcase_08 AC 95 ms
89,032 KB
testcase_09 AC 99 ms
90,848 KB
testcase_10 AC 78 ms
80,912 KB
testcase_11 AC 91 ms
87,180 KB
testcase_12 AC 80 ms
81,936 KB
testcase_13 AC 79 ms
81,912 KB
testcase_14 AC 95 ms
88,844 KB
testcase_15 AC 66 ms
75,732 KB
testcase_16 AC 69 ms
75,648 KB
testcase_17 AC 70 ms
75,992 KB
testcase_18 AC 69 ms
75,896 KB
testcase_19 AC 70 ms
75,884 KB
testcase_20 AC 67 ms
75,668 KB
testcase_21 AC 69 ms
76,144 KB
testcase_22 AC 73 ms
77,300 KB
testcase_23 AC 87 ms
82,980 KB
testcase_24 AC 91 ms
87,308 KB
testcase_25 AC 100 ms
91,032 KB
testcase_26 AC 99 ms
91,304 KB
testcase_27 AC 85 ms
90,536 KB
testcase_28 AC 84 ms
91,212 KB
testcase_29 AC 98 ms
91,212 KB
testcase_30 AC 99 ms
90,896 KB
testcase_31 AC 95 ms
90,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = list(map(int,input().split()))

x.sort()
import sys
s  = {x[i+1] - x[i] for i in range(N - 1)}
if 0 in s:
    print('NO')
    exit()
if len(s) > 1:
    print("NO")
    exit()
print('YES')
0