結果

問題 No.406 鴨等間隔の法則
ユーザー roiti46roiti46
提出日時 2016-10-10 20:44:36
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 16,920 KB
最終ジャッジ日時 2024-04-24 21:17:57
合計ジャッジ時間 4,850 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
11,576 KB
testcase_01 AC 24 ms
8,320 KB
testcase_02 AC 23 ms
8,192 KB
testcase_03 WA -
testcase_04 AC 116 ms
16,024 KB
testcase_05 AC 56 ms
11,068 KB
testcase_06 AC 57 ms
11,176 KB
testcase_07 AC 58 ms
11,216 KB
testcase_08 AC 115 ms
15,968 KB
testcase_09 AC 127 ms
16,756 KB
testcase_10 AC 63 ms
11,444 KB
testcase_11 AC 101 ms
14,772 KB
testcase_12 AC 73 ms
12,376 KB
testcase_13 AC 69 ms
12,044 KB
testcase_14 AC 106 ms
15,248 KB
testcase_15 WA -
testcase_16 AC 30 ms
9,344 KB
testcase_17 AC 27 ms
8,448 KB
testcase_18 AC 30 ms
9,212 KB
testcase_19 AC 31 ms
8,832 KB
testcase_20 AC 35 ms
9,088 KB
testcase_21 AC 35 ms
9,644 KB
testcase_22 AC 44 ms
9,856 KB
testcase_23 AC 77 ms
12,688 KB
testcase_24 AC 94 ms
14,260 KB
testcase_25 AC 124 ms
16,808 KB
testcase_26 AC 126 ms
16,684 KB
testcase_27 WA -
testcase_28 AC 90 ms
16,808 KB
testcase_29 AC 122 ms
16,676 KB
testcase_30 AC 123 ms
16,456 KB
testcase_31 AC 120 ms
16,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
x = sorted(map(int, raw_input().split()))
if len(set((x[i + 1] - x[i] for i in xrange(N - 1)))) == 1:
    print "YES"
else:
    print "NO"

0