結果

問題 No.406 鴨等間隔の法則
ユーザー AREIDO2AREIDO2
提出日時 2016-08-29 11:45:43
言語 Python2
(2.7.18)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 6,660 KB
実行使用メモリ 14,564 KB
最終ジャッジ日時 2023-09-21 18:04:12
合計ジャッジ時間 3,933 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
9,380 KB
testcase_01 AC 11 ms
5,860 KB
testcase_02 AC 12 ms
5,964 KB
testcase_03 AC 11 ms
5,992 KB
testcase_04 AC 127 ms
13,640 KB
testcase_05 AC 48 ms
8,708 KB
testcase_06 AC 51 ms
8,976 KB
testcase_07 AC 52 ms
8,924 KB
testcase_08 AC 118 ms
13,732 KB
testcase_09 AC 132 ms
14,544 KB
testcase_10 AC 57 ms
9,276 KB
testcase_11 AC 102 ms
12,380 KB
testcase_12 AC 68 ms
10,036 KB
testcase_13 AC 65 ms
9,904 KB
testcase_14 AC 106 ms
12,964 KB
testcase_15 AC 15 ms
6,392 KB
testcase_16 AC 18 ms
6,408 KB
testcase_17 AC 15 ms
6,240 KB
testcase_18 AC 17 ms
6,468 KB
testcase_19 AC 19 ms
6,656 KB
testcase_20 AC 23 ms
6,924 KB
testcase_21 AC 23 ms
6,976 KB
testcase_22 AC 34 ms
7,684 KB
testcase_23 AC 74 ms
10,444 KB
testcase_24 AC 93 ms
12,232 KB
testcase_25 AC 132 ms
14,508 KB
testcase_26 AC 128 ms
14,432 KB
testcase_27 AC 84 ms
14,512 KB
testcase_28 AC 90 ms
14,564 KB
testcase_29 AC 130 ms
14,516 KB
testcase_30 AC 129 ms
14,288 KB
testcase_31 AC 130 ms
14,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
#coding:UTF-8

N = int(raw_input())
x1 = map(int,raw_input().split())

x2 = sorted(x1)
calc = x2[1] - x2[0]
judge = "YES"

for I in range(2,N):
     calc2 = x2[I] - x2[I - 1]
     if calc2 == 0 or calc != calc2:
          judge = "NO"

print judge
0