結果
| 問題 |
No.406 鴨等間隔の法則
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 20:44:36 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 408 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 16,812 KB |
| 最終ジャッジ日時 | 2024-11-07 06:23:32 |
| 合計ジャッジ時間 | 4,423 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
ソースコード
# -*- 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"