結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2023-06-05 19:32:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,732 KB |
最終ジャッジ日時 | 2024-12-29 06:18:01 |
合計ジャッジ時間 | 4,031 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 29 |
ソースコード
N = int(input()) A = list(sorted(list(map(int,input().split())))) SA = A[1] - A[0] for i in range(1, N): if A[i] - A[i-1] != sa: print("NO") exit(0) if SA == 0: print("NO") else: print("YES")