結果

問題 No.406 鴨等間隔の法則
ユーザー JunOnumaJunOnuma
提出日時 2017-06-08 15:36:50
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 14,992 KB
最終ジャッジ日時 2024-04-25 01:07:43
合計ジャッジ時間 3,320 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
9,636 KB
testcase_01 AC 11 ms
6,144 KB
testcase_02 AC 9 ms
6,144 KB
testcase_03 WA -
testcase_04 AC 82 ms
13,940 KB
testcase_05 AC 36 ms
9,132 KB
testcase_06 AC 37 ms
9,108 KB
testcase_07 AC 37 ms
9,148 KB
testcase_08 AC 80 ms
14,024 KB
testcase_09 AC 88 ms
14,812 KB
testcase_10 AC 40 ms
9,632 KB
testcase_11 AC 71 ms
13,088 KB
testcase_12 AC 49 ms
10,564 KB
testcase_13 AC 47 ms
10,232 KB
testcase_14 AC 95 ms
13,264 KB
testcase_15 WA -
testcase_16 AC 14 ms
6,784 KB
testcase_17 AC 13 ms
6,528 KB
testcase_18 AC 14 ms
6,784 KB
testcase_19 AC 18 ms
6,784 KB
testcase_20 AC 21 ms
7,040 KB
testcase_21 AC 19 ms
7,296 KB
testcase_22 AC 31 ms
8,064 KB
testcase_23 AC 50 ms
10,872 KB
testcase_24 AC 81 ms
12,316 KB
testcase_25 AC 89 ms
14,868 KB
testcase_26 AC 108 ms
14,864 KB
testcase_27 WA -
testcase_28 AC 57 ms
14,868 KB
testcase_29 AC 112 ms
14,992 KB
testcase_30 AC 109 ms
14,768 KB
testcase_31 AC 86 ms
14,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
l = map(int, raw_input().split())
l.sort()
d = l[1] - l[0]
p = 2
while p < n:
    if l[p] - l[p-1] != d:
        print 'NO'
        break
    p += 1
else:
    print 'YES'
0