結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
12,992 KB
testcase_01 AC 15 ms
7,792 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 76 ms
17,972 KB
testcase_05 AC 37 ms
12,240 KB
testcase_06 AC 39 ms
12,476 KB
testcase_07 AC 39 ms
12,736 KB
testcase_08 AC 76 ms
18,260 KB
testcase_09 AC 81 ms
18,676 KB
testcase_10 AC 42 ms
13,116 KB
testcase_11 AC 66 ms
16,472 KB
testcase_12 AC 47 ms
13,376 KB
testcase_13 AC 46 ms
12,908 KB
testcase_14 AC 68 ms
17,088 KB
testcase_15 AC 17 ms
8,728 KB
testcase_16 AC 19 ms
9,444 KB
testcase_17 AC 17 ms
8,544 KB
testcase_18 AC 18 ms
9,464 KB
testcase_19 AC 20 ms
8,968 KB
testcase_20 AC 21 ms
9,412 KB
testcase_21 AC 23 ms
10,200 KB
testcase_22 AC 27 ms
10,424 KB
testcase_23 AC 48 ms
13,752 KB
testcase_24 AC 58 ms
16,176 KB
testcase_25 AC 81 ms
18,900 KB
testcase_26 AC 75 ms
19,044 KB
testcase_27 AC 54 ms
19,076 KB
testcase_28 AC 57 ms
18,916 KB
testcase_29 AC 73 ms
19,016 KB
testcase_30 AC 74 ms
18,736 KB
testcase_31 AC 77 ms
18,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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