結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2020-08-22 18:36:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 81,664 KB |
最終ジャッジ日時 | 2024-10-15 12:07:32 |
合計ジャッジ時間 | 2,370 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 1 |
ソースコード
n = int(input()) x = list(map(int,input().split())) x.sort() ans = 1000000 for i in range(n-1): y = (x[i+1])-(x[i]) if y == 0: continue elif y<ans: ans = y print(ans)