結果
| 問題 | No.406 鴨等間隔の法則 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 20:44:36 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 81,052 KB |
| 実行使用メモリ | 104,992 KB |
| 最終ジャッジ日時 | 2026-07-18 09:27:32 |
| 合計ジャッジ時間 | 6,487 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"