結果

問題 No.627 ランダムウォークの軌跡
ユーザー taktak
提出日時 2018-03-22 07:01:51
言語 F#
(F# 4.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 381 bytes
コンパイル時間 4,997 ms
コンパイル使用メモリ 160,888 KB
実行使用メモリ 24,744 KB
最終ジャッジ日時 2023-09-07 01:25:04
合計ジャッジ時間 8,818 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
24,696 KB
testcase_01 AC 70 ms
22,712 KB
testcase_02 AC 70 ms
22,676 KB
testcase_03 AC 69 ms
22,552 KB
testcase_04 AC 70 ms
22,544 KB
testcase_05 AC 69 ms
22,656 KB
testcase_06 AC 68 ms
22,592 KB
testcase_07 AC 70 ms
24,620 KB
testcase_08 AC 71 ms
24,716 KB
testcase_09 AC 70 ms
24,652 KB
testcase_10 AC 69 ms
22,620 KB
testcase_11 AC 70 ms
22,572 KB
testcase_12 AC 70 ms
24,744 KB
testcase_13 AC 68 ms
22,568 KB
testcase_14 AC 69 ms
22,676 KB
testcase_15 AC 70 ms
22,700 KB
testcase_16 AC 71 ms
22,672 KB
testcase_17 AC 71 ms
22,648 KB
testcase_18 AC 69 ms
20,604 KB
testcase_19 AC 70 ms
20,520 KB
testcase_20 AC 69 ms
24,640 KB
testcase_21 AC 70 ms
24,560 KB
testcase_22 AC 68 ms
22,676 KB
testcase_23 AC 69 ms
24,692 KB
testcase_24 AC 70 ms
24,728 KB
testcase_25 AC 69 ms
22,516 KB
testcase_26 AC 68 ms
22,540 KB
testcase_27 AC 68 ms
20,540 KB
testcase_28 AC 68 ms
22,564 KB
testcase_29 AC 70 ms
22,576 KB
testcase_30 AC 69 ms
22,496 KB
testcase_31 AC 70 ms
22,644 KB
testcase_32 AC 69 ms
24,668 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let read() = Console.ReadLine() |> int
let out flag = 
        if flag then printfn "T"
        else         printfn "F"                

let N = read()
let X = 0 :: List.init N (fun _ -> read()) 
        |> Array.ofList
                        
Array.map2 (fun l r -> abs (l - r)) X.[0 .. N-1] X.[1 .. N]
|> Array.forall(fun x -> x = 1)
|> out





                  
0