結果

問題 No.135 とりあえず1次元の問題
ユーザー regeregeregerege
提出日時 2016-06-19 00:06:11
言語 F#
(F# 4.0)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 3,255 ms
コンパイル使用メモリ 154,368 KB
実行使用メモリ 44,568 KB
最終ジャッジ日時 2023-09-02 00:26:44
合計ジャッジ時間 7,825 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 352 ms
44,568 KB
testcase_01 AC 94 ms
23,064 KB
testcase_02 AC 94 ms
25,232 KB
testcase_03 RE -
testcase_04 AC 95 ms
23,236 KB
testcase_05 AC 94 ms
25,276 KB
testcase_06 AC 95 ms
23,172 KB
testcase_07 AC 95 ms
23,192 KB
testcase_08 AC 95 ms
23,268 KB
testcase_09 AC 95 ms
23,364 KB
testcase_10 AC 95 ms
23,276 KB
testcase_11 AC 94 ms
23,232 KB
testcase_12 AC 102 ms
21,412 KB
testcase_13 AC 95 ms
23,108 KB
testcase_14 AC 104 ms
23,320 KB
testcase_15 AC 102 ms
23,388 KB
testcase_16 AC 104 ms
23,300 KB
testcase_17 AC 104 ms
23,412 KB
testcase_18 AC 102 ms
25,424 KB
testcase_19 AC 103 ms
23,312 KB
testcase_20 AC 103 ms
23,392 KB
testcase_21 AC 147 ms
29,856 KB
testcase_22 AC 353 ms
44,124 KB
evil01.txt AC 303 ms
41,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

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