結果

問題 No.406 鴨等間隔の法則
ユーザー ebicochinealebicochineal
提出日時 2017-01-27 16:14:27
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 19,084 KB
最終ジャッジ日時 2023-09-21 18:21:56
合計ジャッジ時間 3,134 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
13,340 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 15 ms
7,752 KB
testcase_03 AC 15 ms
7,712 KB
testcase_04 AC 81 ms
17,932 KB
testcase_05 AC 38 ms
12,220 KB
testcase_06 AC 39 ms
12,476 KB
testcase_07 AC 40 ms
12,692 KB
testcase_08 AC 76 ms
18,268 KB
testcase_09 AC 90 ms
18,684 KB
testcase_10 AC 42 ms
13,188 KB
testcase_11 AC 66 ms
16,412 KB
testcase_12 AC 48 ms
13,404 KB
testcase_13 AC 47 ms
12,972 KB
testcase_14 AC 70 ms
17,064 KB
testcase_15 AC 18 ms
8,788 KB
testcase_16 AC 20 ms
9,512 KB
testcase_17 AC 18 ms
8,556 KB
testcase_18 AC 19 ms
9,484 KB
testcase_19 AC 20 ms
8,984 KB
testcase_20 AC 22 ms
9,464 KB
testcase_21 AC 24 ms
10,264 KB
testcase_22 AC 29 ms
10,340 KB
testcase_23 AC 50 ms
13,624 KB
testcase_24 AC 60 ms
16,120 KB
testcase_25 AC 85 ms
18,872 KB
testcase_26 AC 79 ms
19,084 KB
testcase_27 AC 56 ms
18,996 KB
testcase_28 AC 59 ms
19,040 KB
testcase_29 AC 79 ms
19,060 KB
testcase_30 AC 77 ms
18,860 KB
testcase_31 AC 82 ms
18,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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