結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
eSeF
|
| 提出日時 | 2020-08-13 17:55:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 159 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,540 KB |
| 最終ジャッジ日時 | 2024-10-09 19:24:42 |
| 合計ジャッジ時間 | 1,742 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 22 |
ソースコード
n=int(input())
x=sorted(list(map(int,input())))
ans=int(1e9)
for i in range(n-1):
if x[i]==x[i+1]:
continue
ans=min(ans,x[i+1]-x[i])
print(ans)
eSeF