結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2015-08-22 12:16:43 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 760 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 16,488 KB |
最終ジャッジ日時 | 2025-01-03 07:30:54 |
合計ジャッジ時間 | 1,913 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 22 |
ソースコード
N = input() A = map(int, raw_input().split()) B = list(set(A)).sort() ans = 1 << 50 for i in range(1, len(B)): ans = min(ans, abs(B[i] - B[i - 1])) if (ans == 1 << 50): print 0 else: print ans