結果

問題 No.406 鴨等間隔の法則
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-10 20:50:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 91,616 KB
最終ジャッジ日時 2023-08-31 00:51:12
合計ジャッジ時間 5,531 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
81,044 KB
testcase_01 AC 75 ms
70,924 KB
testcase_02 AC 75 ms
70,944 KB
testcase_03 WA -
testcase_04 AC 112 ms
88,992 KB
testcase_05 AC 91 ms
79,544 KB
testcase_06 AC 93 ms
79,452 KB
testcase_07 AC 92 ms
80,416 KB
testcase_08 AC 111 ms
89,468 KB
testcase_09 AC 115 ms
90,760 KB
testcase_10 AC 94 ms
80,944 KB
testcase_11 AC 107 ms
87,096 KB
testcase_12 AC 97 ms
81,848 KB
testcase_13 AC 95 ms
81,916 KB
testcase_14 AC 110 ms
88,768 KB
testcase_15 WA -
testcase_16 AC 81 ms
75,736 KB
testcase_17 AC 81 ms
76,220 KB
testcase_18 AC 82 ms
75,672 KB
testcase_19 AC 82 ms
75,688 KB
testcase_20 AC 83 ms
76,116 KB
testcase_21 AC 84 ms
76,104 KB
testcase_22 AC 84 ms
76,892 KB
testcase_23 AC 97 ms
82,992 KB
testcase_24 AC 106 ms
87,448 KB
testcase_25 AC 116 ms
91,404 KB
testcase_26 AC 114 ms
91,284 KB
testcase_27 WA -
testcase_28 AC 99 ms
91,616 KB
testcase_29 AC 112 ms
91,116 KB
testcase_30 AC 113 ms
91,008 KB
testcase_31 AC 111 ms
90,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = list(map(int,input().split()))
x.sort()

S = set()
for i in range(N-1):
	S.add(x[i+1]-x[i])

if len(S) == 1:
	print("YES")
else:
	print("NO")
0