結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2015-08-22 12:15:29 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 981 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 16,488 KB |
最終ジャッジ日時 | 2025-01-03 07:30:47 |
合計ジャッジ時間 | 2,074 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 22 |
ソースコード
N = input() A = map(int, raw_input().split()) B = list(set(A)) print B 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