結果

問題 No.406 鴨等間隔の法則
ユーザー jamadjamad
提出日時 2017-07-23 16:25:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,604 KB
最終ジャッジ日時 2024-04-25 01:11:13
合計ジャッジ時間 3,318 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
15,468 KB
testcase_01 WA -
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 100 ms
20,308 KB
testcase_05 AC 54 ms
15,096 KB
testcase_06 AC 54 ms
14,588 KB
testcase_07 AC 57 ms
15,404 KB
testcase_08 AC 102 ms
20,888 KB
testcase_09 AC 110 ms
21,280 KB
testcase_10 AC 60 ms
15,232 KB
testcase_11 AC 88 ms
18,936 KB
testcase_12 AC 68 ms
16,164 KB
testcase_13 AC 65 ms
15,736 KB
testcase_14 WA -
testcase_15 AC 31 ms
11,264 KB
testcase_16 AC 35 ms
12,160 KB
testcase_17 AC 33 ms
11,264 KB
testcase_18 AC 34 ms
12,288 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 38 ms
12,544 KB
testcase_22 WA -
testcase_23 AC 70 ms
16,376 KB
testcase_24 WA -
testcase_25 AC 114 ms
21,352 KB
testcase_26 WA -
testcase_27 AC 78 ms
21,600 KB
testcase_28 AC 82 ms
21,476 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 105 ms
20,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

i=input
N=int(i())
X=sorted(map(int,i().split()))
Y=set([X[i+1]-X[i] for i in range(N-1)])
y=Y.pop()
print(('NO','YES')[y!=0 and Y=={}])
0