結果

問題 No.410 出会い
コンテスト
ユーザー kuuso1
提出日時 2016-08-16 06:58:10
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 31 ms / 2,000 ms
+ 152µs
コード長 386 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,750 ms
コンパイル使用メモリ 201,436 KB
実行使用メモリ 31,488 KB
最終ジャッジ日時 2026-07-31 21:34:15
合計ジャッジ時間 7,026 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (164 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

open System
type Sol() =
    member this.Solve() = 
        let (Px,Py) = Console.ReadLine().Split(' ') |> Array.map double |> fun xs -> (xs.[0],xs.[1])
        let (Qx,Qy) = Console.ReadLine().Split(' ') |> Array.map double |> fun xs -> (xs.[0],xs.[1])
        let ans = abs(Px - Qx) + abs(Py - Qy) |> fun x -> x/2.0
        Console.WriteLine(ans)

let mySol = new Sol()
mySol.Solve()
0