結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2022-01-22 19:45:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 83,328 KB |
最終ジャッジ日時 | 2024-11-27 20:30:12 |
合計ジャッジ時間 | 4,443 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 27 WA * 2 |
ソースコード
N = int(input()) lsx = list(map(int,input().split())) lsx.sort() d = lsx[1]-lsx[0] for i in range(N-1): if d == lsx[i+1]-lsx[i]: continue print('NO') exit() print('YES')