結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
![]() |
提出日時 | 2023-01-27 18:26:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 83,244 KB |
最終ジャッジ日時 | 2024-06-28 03:43:30 |
合計ジャッジ時間 | 3,749 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
n = int(input()) x = list(map(int,input().split())) x.sort() sa = x[1]-x[0] if sa == 0: print("NO") exit() for i in range(2,n): if x[i]-x[i-1] != sa: print("NO") exit() print("YES")