結果

問題 No.135 とりあえず1次元の問題
ユーザー regerege
提出日時 2016-06-19 00:07:27
言語 F#
(F# 4.0)
結果
AC  
実行時間 555 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 9,253 ms
コンパイル使用メモリ 191,204 KB
実行使用メモリ 77,952 KB
最終ジャッジ日時 2024-06-11 06:51:47
合計ジャッジ時間 18,858 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (845 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let N = stdin.ReadLine() |> int
let s =
    stdin.ReadLine().Split(' ')
    |> Seq.map int
    |> Set.ofSeq
if s.Count <= 1 then 0
else
    s |> Seq.pairwise
    |> Seq.map (fun (a,b) -> abs(a-b))
    |> Seq.min
|> printfn "%d"
0