結果

問題 No.135 とりあえず1次元の問題
ユーザー chike_pluschike_plus
提出日時 2019-04-04 10:25:24
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 4,683 ms
コンパイル使用メモリ 158,616 KB
実行使用メモリ 39,736 KB
最終ジャッジ日時 2023-08-26 08:55:21
合計ジャッジ時間 7,215 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
35,516 KB
testcase_01 AC 62 ms
22,220 KB
testcase_02 WA -
testcase_03 AC 62 ms
22,304 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 67 ms
22,492 KB
testcase_13 AC 60 ms
22,376 KB
testcase_14 AC 68 ms
24,592 KB
testcase_15 AC 67 ms
22,428 KB
testcase_16 WA -
testcase_17 AC 67 ms
22,428 KB
testcase_18 AC 67 ms
24,528 KB
testcase_19 AC 68 ms
24,592 KB
testcase_20 AC 65 ms
24,472 KB
testcase_21 WA -
testcase_22 WA -
evil01.txt AC 139 ms
35,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.135 とりあえず1次元の問題``() =

  let n = stdin.ReadLine() |> int
  let xn =
     stdin.ReadLine().Split(' ')
    |> Array.map (int)
    |> Array.sort

  seq { for i in [2..xn.Length] do yield (xn.[i-1] - xn.[i-2]) }
  |> Seq.min 
  |> stdout.WriteLine
  
``No.135 とりあえず1次元の問題``()
0