結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
![]() |
提出日時 | 2016-09-05 23:23:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,864 KB |
最終ジャッジ日時 | 2024-11-07 05:48:09 |
合計ジャッジ時間 | 3,668 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 27 |
ソースコード
N = int(input()) L = sorted(list(map(int, input().split()))) d = L[1] - L[0] if d == 0: print("NO") exit() for i in range(2, N): print(L[i] - L[i - 1]) if L[i] - L[i - 1] != d: print("NO") exit() else: print("YES")