結果

問題 No.406 鴨等間隔の法則
ユーザー 👑 NachiaNachia
提出日時 2021-05-09 14:43:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 81,688 KB
実行使用メモリ 88,276 KB
最終ジャッジ日時 2023-10-19 00:56:21
合計ジャッジ時間 3,464 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
72,112 KB
testcase_01 AC 37 ms
53,332 KB
testcase_02 AC 38 ms
53,332 KB
testcase_03 WA -
testcase_04 AC 79 ms
83,852 KB
testcase_05 AC 54 ms
70,384 KB
testcase_06 AC 55 ms
70,648 KB
testcase_07 AC 55 ms
71,292 KB
testcase_08 AC 77 ms
83,780 KB
testcase_09 AC 84 ms
88,028 KB
testcase_10 AC 57 ms
72,104 KB
testcase_11 AC 72 ms
81,552 KB
testcase_12 AC 60 ms
73,396 KB
testcase_13 AC 62 ms
73,272 KB
testcase_14 AC 78 ms
83,464 KB
testcase_15 WA -
testcase_16 AC 44 ms
61,544 KB
testcase_17 AC 41 ms
59,496 KB
testcase_18 AC 42 ms
61,544 KB
testcase_19 AC 46 ms
61,544 KB
testcase_20 AC 46 ms
61,544 KB
testcase_21 AC 47 ms
63,872 KB
testcase_22 AC 51 ms
65,596 KB
testcase_23 AC 65 ms
74,484 KB
testcase_24 AC 72 ms
81,248 KB
testcase_25 AC 82 ms
88,100 KB
testcase_26 AC 82 ms
86,088 KB
testcase_27 WA -
testcase_28 AC 66 ms
88,276 KB
testcase_29 AC 84 ms
86,088 KB
testcase_30 AC 81 ms
85,948 KB
testcase_31 AC 79 ms
87,772 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 else "NO")
0