結果
| 問題 | No.406 鴨等間隔の法則 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-07 20:06:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 25,116 KB |
| 最終ジャッジ日時 | 2026-06-07 20:06:56 |
| 合計ジャッジ時間 | 7,191 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
ソースコード
n = int(input())
x = list(map(int,input().split()))
x_so = sorted(x)
che = []
for i in range(1, n):
che.append(x_so[i] - x_so[i - 1])
che_set = set(che)
if (len(che_set) == 1) and che_set != 0:
print('YES')
else:
print('NO')