結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
|
提出日時 | 2019-08-24 06:40:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 21,484 KB |
最終ジャッジ日時 | 2024-10-13 14:58:23 |
合計ジャッジ時間 | 2,238 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 RE * 1 |
ソースコード
num = int(input()) data = input().split(' ') int_data = [int(s) for s in data] list.sort(int_data, reverse = True) ans = [int_data[i] - int_data[i + 1] for i in range(num - 1) if int_data[i] - int_data[i + 1] != 0] list.sort(ans) print(ans[0])