結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-19 00:07:27 |
| 言語 | F# (F# 10.0) |
| 結果 |
AC
|
| 実行時間 | 693 ms / 5,000 ms |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 8,981 ms |
| コンパイル使用メモリ | 208,288 KB |
| 実行使用メモリ | 85,376 KB |
| 最終ジャッジ日時 | 2026-03-03 22:00:19 |
| 合計ジャッジ時間 | 20,524 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (295 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
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"