結果

問題 No.406 鴨等間隔の法則
ユーザー aaaaaaaaaa
提出日時 2017-03-02 18:31:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 19,016 KB
最終ジャッジ日時 2023-09-21 18:24:46
合計ジャッジ時間 3,086 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
13,108 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 15 ms
7,768 KB
testcase_04 AC 77 ms
17,932 KB
testcase_05 AC 37 ms
12,264 KB
testcase_06 AC 39 ms
12,480 KB
testcase_07 AC 39 ms
12,644 KB
testcase_08 AC 75 ms
18,272 KB
testcase_09 AC 84 ms
18,752 KB
testcase_10 AC 42 ms
13,224 KB
testcase_11 AC 67 ms
16,400 KB
testcase_12 AC 48 ms
13,388 KB
testcase_13 AC 46 ms
12,876 KB
testcase_14 AC 69 ms
16,920 KB
testcase_15 AC 17 ms
8,652 KB
testcase_16 AC 20 ms
9,356 KB
testcase_17 AC 17 ms
8,544 KB
testcase_18 AC 19 ms
9,440 KB
testcase_19 AC 20 ms
9,008 KB
testcase_20 AC 22 ms
9,408 KB
testcase_21 AC 24 ms
10,188 KB
testcase_22 AC 29 ms
10,328 KB
testcase_23 AC 52 ms
13,752 KB
testcase_24 AC 60 ms
16,028 KB
testcase_25 AC 86 ms
18,864 KB
testcase_26 AC 77 ms
18,976 KB
testcase_27 AC 56 ms
19,016 KB
testcase_28 AC 58 ms
18,964 KB
testcase_29 AC 77 ms
19,012 KB
testcase_30 AC 77 ms
18,780 KB
testcase_31 AC 81 ms
18,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
a=sorted(map(int,input().split()))
print(['YES','NO'][1!=len({x-y for x,y in zip(a[1:],a)if x-y})])
0