結果

問題 No.406 鴨等間隔の法則
ユーザー 👑 NachiaNachia
提出日時 2021-05-09 14:44:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 81,684 KB
実行使用メモリ 88,340 KB
最終ジャッジ日時 2023-10-19 00:56:58
合計ジャッジ時間 3,407 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
72,176 KB
testcase_01 AC 38 ms
53,396 KB
testcase_02 AC 37 ms
53,396 KB
testcase_03 AC 38 ms
53,396 KB
testcase_04 AC 79 ms
83,916 KB
testcase_05 AC 59 ms
70,448 KB
testcase_06 AC 57 ms
70,712 KB
testcase_07 AC 58 ms
71,356 KB
testcase_08 AC 79 ms
83,844 KB
testcase_09 AC 84 ms
88,092 KB
testcase_10 AC 59 ms
72,168 KB
testcase_11 AC 75 ms
81,616 KB
testcase_12 AC 63 ms
73,460 KB
testcase_13 AC 61 ms
73,336 KB
testcase_14 AC 77 ms
83,528 KB
testcase_15 AC 44 ms
61,608 KB
testcase_16 AC 46 ms
61,608 KB
testcase_17 AC 44 ms
59,560 KB
testcase_18 AC 44 ms
61,608 KB
testcase_19 AC 46 ms
61,608 KB
testcase_20 AC 47 ms
61,608 KB
testcase_21 AC 48 ms
63,936 KB
testcase_22 AC 51 ms
65,660 KB
testcase_23 AC 65 ms
74,548 KB
testcase_24 AC 73 ms
81,312 KB
testcase_25 AC 85 ms
88,164 KB
testcase_26 AC 84 ms
86,152 KB
testcase_27 AC 68 ms
85,564 KB
testcase_28 AC 69 ms
88,340 KB
testcase_29 AC 84 ms
86,152 KB
testcase_30 AC 83 ms
86,012 KB
testcase_31 AC 84 ms
87,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = sorted([int(a) for a in input().split()])
D = set([r-l for l,r in zip(X[:-1],X[1:])])
print("YES" if len(D) == 1 and 0 not in D else "NO")
0