結果

問題 No.406 鴨等間隔の法則
ユーザー nebukuro09nebukuro09
提出日時 2016-09-09 09:39:11
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 140 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 15,056 KB
最終ジャッジ日時 2024-04-24 20:49:33
合計ジャッジ時間 3,184 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
9,696 KB
testcase_01 RE -
testcase_02 AC 11 ms
6,400 KB
testcase_03 RE -
testcase_04 AC 88 ms
14,144 KB
testcase_05 AC 37 ms
9,192 KB
testcase_06 AC 40 ms
9,424 KB
testcase_07 AC 40 ms
9,336 KB
testcase_08 AC 87 ms
14,216 KB
testcase_09 AC 95 ms
14,968 KB
testcase_10 AC 44 ms
9,692 KB
testcase_11 AC 75 ms
13,024 KB
testcase_12 AC 52 ms
10,624 KB
testcase_13 AC 49 ms
10,420 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 16 ms
6,912 KB
testcase_17 AC 14 ms
6,528 KB
testcase_18 AC 15 ms
6,912 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 20 ms
7,296 KB
testcase_22 RE -
testcase_23 AC 55 ms
11,060 KB
testcase_24 RE -
testcase_25 AC 96 ms
15,052 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 63 ms
14,924 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 92 ms
14,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
x = sorted(map(int, raw_input().split()))
print 'YES' if all(x[i+1]-x[i]==x[1]-x[0] for i in xrange(N)) and x[1]!=x[0] else 'NO'
0