結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
![]() |
提出日時 | 2023-06-10 20:51:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 315 ms |
コンパイル使用メモリ | 82,580 KB |
実行使用メモリ | 85,772 KB |
最終ジャッジ日時 | 2025-01-03 01:42:50 |
合計ジャッジ時間 | 3,890 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N = int(input()) x = list(map(int,input().split())) x.sort() S = set() for i in range(N-1): S.add(x[i+1]-x[i]) if len(S) == 1 and 0 not in S: print("YES") else: print("NO")