2019-07-01から1ヶ月間の記事一覧

【AtCoder】【F#】abc007_3 幅優先探索

C: 幅優先探索 - AtCoder Beginner Contest 007 | AtCoder F#と幅優先探索を同時に学ぼうとした。 namespace App open System.Collections.Generic module Main = let createGraph (maze : string [] []) : Dictionary<int * int, (int * int) list> = let graph = new Dictionary<int * int, (int * int) list>() let m</int></int>…

F#でPrintfnするのにハマった

open System [<EntryPoint>] let main argv = let a = "str" printfn a 0 コンパイルエラー The type 'string' is not compatible with the type 'Printf.TextWriterFormat<'a>' が発生。 どういうこと……? F# printf string - Stack Overflow なるほど。 open System [<EntryPoint>]</entrypoint></entrypoint>…