結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2022-05-17 16:53:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 81 ms / 2,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 513 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 83,456 KB |
最終ジャッジ日時 | 2024-09-15 11:38:28 |
合計ジャッジ時間 | 3,659 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N = int(input()) x = list(map(int,input().split())) x.sort() import sys s = {x[i+1] - x[i] for i in range(N - 1)} if 0 in s: print('NO') exit() if len(s) > 1: print("NO") exit() print('YES')