結果
| 問題 |
No.406 鴨等間隔の法則
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-01 12:25:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 47,124 KB |
| 最終ジャッジ日時 | 2024-11-21 23:34:37 |
| 合計ジャッジ時間 | 21,731 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np N = int(readline()) X = np.array(read().split(),np.int64) X.sort() dx = np.diff(X) w = dx[0] answer = 'YES' if (dx == w).all() else 'NO' print(answer)
maspy